diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-10-24 07:16:16 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-10-24 07:16:16 +0000 |
commit | 0c94868f67404a7989d4743910be1752dd67c58d (patch) | |
tree | 2e4800f1f1449901121b42ec7e3ff6b46e839ec9 /railties/lib/rails_generator | |
parent | d4e35666d12748998a236f165e78eeb61c69a02d (diff) | |
download | rails-0c94868f67404a7989d4743910be1752dd67c58d.tar.gz rails-0c94868f67404a7989d4743910be1752dd67c58d.tar.bz2 rails-0c94868f67404a7989d4743910be1752dd67c58d.zip |
Update scaffold to use new form_tag block functionality. Closes #6480 [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml | 4 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml | 4 |
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 %>' %> |