aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml4
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml4
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
index 2db0909cb8..a86aa0b0d5 100644
--- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
+++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
@@ -1,9 +1,9 @@
<h1>Editing <%= singular_name %></h1>
-<%%= start_form_tag :action => 'update<%= @suffix %>', :id => @<%= singular_name %> %>
+<%% form_tag :action => 'update<%= @suffix %>', :id => @<%= singular_name %> do %>
<%%= render :partial => 'form' %>
<%%= submit_tag 'Edit' %>
-<%%= end_form_tag %>
+<%% end %>
<%%= link_to 'Show', :action => 'show<%= suffix %>', :id => @<%= singular_name %> %> |
<%%= link_to 'Back', :action => 'list<%= suffix %>' %>
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
index 286f850718..8222ea622f 100644
--- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
+++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
@@ -1,8 +1,8 @@
<h1>New <%= singular_name %></h1>
-<%%= start_form_tag :action => 'create<%= @suffix %>' %>
+<%% form_tag :action => 'create<%= @suffix %>' do %>
<%%= render :partial => 'form' %>
<%%= submit_tag "Create" %>
-<%%= end_form_tag %>
+<%% end %>
<%%= link_to 'Back', :action => 'list<%= suffix %>' %>