Skip to content

Commit

Permalink
uses data() instead of attr() for fetching link params, issue rails#307
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipp committed Mar 5, 2013
1 parent 49c06e1 commit 9a067f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rails.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
var href = rails.href(link),
method = link.data('method'),
target = link.attr('target'),
params = link.attr('params'),
params = link.data('params'),
csrf_token = $('meta[name=csrf-token]').attr('content'),
csrf_param = $('meta[name=csrf-param]').attr('content'),
form = $('<form method="post" action="' + href + '"></form>'),
Expand Down

0 comments on commit 9a067f4

Please sign in to comment.