From 9a067f45d276c32820c8e83e51ab279ba20dc70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillipp=20R=C3=B6ll?= Date: Tue, 5 Mar 2013 01:43:36 +0100 Subject: [PATCH] uses data() instead of attr() for fetching link params, issue #307 --- src/rails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rails.js b/src/rails.js index f4ee7e85..e5b2f1cc 100644 --- a/src/rails.js +++ b/src/rails.js @@ -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 = $('
'),