diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-04 14:15:16 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-04 14:58:32 -0800 |
commit | 78de17cf7095af8e86d192af8d8fbe21e6f193d9 (patch) | |
tree | e8fe545aea289d059f9eac3d0bf335586a149576 /railties/lib/generators | |
parent | 127e53453dc52e07aff877212e204084f7321529 (diff) | |
download | rails-78de17cf7095af8e86d192af8d8fbe21e6f193d9.tar.gz rails-78de17cf7095af8e86d192af8d8fbe21e6f193d9.tar.bz2 rails-78de17cf7095af8e86d192af8d8fbe21e6f193d9.zip |
Expose CSRF tag for UJS adapters
Diffstat (limited to 'railties/lib/generators')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/layout.html.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/generators/erb/scaffold/templates/layout.html.erb index 496de90ebb..420d17f33c 100644 --- a/railties/lib/generators/erb/scaffold/templates/layout.html.erb +++ b/railties/lib/generators/erb/scaffold/templates/layout.html.erb @@ -4,6 +4,7 @@ <title><%= controller_class_name %>: <%%= controller.action_name %></title> <%%= stylesheet_link_tag 'scaffold' %> <%%= javascript_include_tag :defaults %> + <%%= csrf_meta_tag %> </head> <body> |