This problem seems so basic that I am sure people would have faced this earlier, but I am unable to find any mention on it anywhere.
I have cached VendrsController#show action, thus resulting in vendors/:id.json being stored under public directory to be delivered by Apache on GET requests. When I make a PUT request to the same URL, rather than handing the request over to Rails stack Apache thrown “405 Method Not Allowed”.
On digging a bit, I realized that Apache miss understands my intentions behind the PUT request and throws error saying that I can access the JSON resource only using a GET or HEAD request. Trying to PUT on a non executable JSON file is senseless and I agree to it.
How do I configure apache to pass on all PUT, DELETE requests back to Rails? Any help or pointers are most appreciated.