Make Rails' data-method machinery work
authorMarius Mathiesen <marius@gitorious.org>
Mon, 10 Dec 2012 09:26:48 +0000 (10:26 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 10 Dec 2012 09:26:48 +0000 (10:26 +0100)
commitb37432b2188940fed31259a2f5a18e5460f6da1b
tree2ea1dbd235eb49886fa1f687e057581df5384d71
parenta46b76ddc1347da4fa82599ed1292e7e96557fa9
Make Rails' data-method machinery work

In order for custom HTTP methods, we need:
- rails.js (downloaded from https://github.com/rails/jquery-ujs)
- include rails.js inside <head>
- add the csrf_meta_tag to <head>
app/helpers/application_helper.rb
app/views/layouts/_common_head.html.erb
public/javascripts/rails.js [new file with mode: 0644]