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
This commit is contained in:
Michael Koziarski
2006-10-24 07:16:16 +00:00
parent d4e35666d1
commit 0c94868f67
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Update scaffold to use new form_tag block functionality. Closes #6480. [BobSilva]
* Plugin generator: check for class collisions. #4833 [vinbarnes@gmail.com]
* Mailer generator: handle mailers in modules, set mime_version in unit test. [Jeremy Kemper]

View File

@@ -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 %>' %>

View File

@@ -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 %>' %>