Permalink
Browse files

Ensure javascripts are pulled in so UJS can hook the Delete link

  • Loading branch information...
1 parent 2036268 commit 127e53453dc52e07aff877212e204084f7321529 @jeremy jeremy committed Feb 4, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/generators/erb/scaffold/templates/layout.html.erb
@@ -3,6 +3,7 @@
<head>
<title><%= controller_class_name %>: <%%= controller.action_name %></title>
<%%= stylesheet_link_tag 'scaffold' %>
+ <%%= javascript_include_tag :defaults %>
</head>
<body>

2 comments on commit 127e534

Contributor

nicolasblanco commented on 127e534 Feb 4, 2010

Great...

The current default Rails Prototype JS driver don't catch these links. I'm not good in Prototype so I can not help, but hope that someone will add these UJS hooks for the beta release.

Owner

jeremy replied Feb 4, 2010

Yep, last thing left for UJS!

Please sign in to comment.