authenticity_token in rails 3.0.5 and data-remote links with put oder delete method #51

Closed
fredv opened this Issue Mar 24, 2011 · 1 comment

Comments

Projects
None yet
2 participants

fredv commented Mar 24, 2011

Hi there,

thanks for the great gem!

In rails.js, line 35 is missing the csrf_token as param. I stumbled upon this issue recently and am using the latest released gem. This only seems to occur if the dataType is set to 'script' ... 'text/xml' works fine.

var data = el.is('form') ? el.serializeArray() : csrf_param+"="+csrf_token;

Regards,
Fred

Owner

indirect commented May 11, 2011

The 1.0.1 gem is updated with the latest rails.js. Thanks for the report!

indirect closed this May 11, 2011

@indirect indirect pushed a commit that referenced this issue May 29, 2012

@jeremy jeremy Merge pull request #51 from joliss/jquery-ui-doc
Recommend jquery-ui-rails gem
d12f9e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment