Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Rails ajax link_to remote with put, post
Key thing is to add form_authenticity_token to path param as a query_string
<%= link_to 'Reset', null_counter_model_path(model, :authenticity_token => form_authenticity_token), :confirm => 'Are you sure?', :method => :put, :remote => true %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.