Aakash Dharmadhikari
2011-Sep-11 13:38 UTC
Method Not Allowed while updating a resource which is cached
Hello, 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. Regards, Aakash http://c42.in/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.