Monday, 25 April 2011

error for ActionController::InvalidAuthenticityToken (ActionController

Set this in your controller class definition 
                          protect_from_forgery :only => [:create, :update, :destroy]
or add this in current form
                       <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

No comments:

Post a Comment