I have web site built with Rails3 and now I want to implement json API for mobile client access. However, sending json post request from the client because of the protect_fr
Add the code below to your ./app/controllers/application_controller.rb:
./app/controllers/application_controller.rb
protect_from_forgery unless: -> { request.format.json? }