mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Display error messages on scaffolded form pages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
19c62a7ee9
commit
b141bdbb32
4 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
<h1>Editing <%= @scaffold_singular_name %></h1>
|
<h1>Editing <%= @scaffold_singular_name %></h1>
|
||||||
|
|
||||||
|
<%= error_messages_for(@scaffold_singular_name) %>
|
||||||
<%= form(@scaffold_singular_name, :action => "update" + @scaffold_suffix) %>
|
<%= form(@scaffold_singular_name, :action => "update" + @scaffold_suffix) %>
|
||||||
|
|
||||||
<%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => instance_variable_get("@#{@scaffold_singular_name}").id %> |
|
<%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => instance_variable_get("@#{@scaffold_singular_name}").id %> |
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<h1>New <%= @scaffold_singular_name %></h1>
|
<h1>New <%= @scaffold_singular_name %></h1>
|
||||||
|
|
||||||
|
<%= error_messages_for(@scaffold_singular_name) %>
|
||||||
<%= form(@scaffold_singular_name, :action => "create" + @scaffold_suffix) %>
|
<%= form(@scaffold_singular_name, :action => "create" + @scaffold_suffix) %>
|
||||||
|
|
||||||
<%= link_to "Back", :action => "list#{@scaffold_suffix}" %>
|
<%= link_to "Back", :action => "list#{@scaffold_suffix}" %>
|
|
@ -1,5 +1,6 @@
|
||||||
<h1>Editing <%= singular_name %></h1>
|
<h1>Editing <%= singular_name %></h1>
|
||||||
|
|
||||||
|
<%%= error_messages_for '<%= singular_name %>' %>
|
||||||
<%%= form '<%= singular_name %>', :action => 'update<%= suffix %>' %>
|
<%%= form '<%= singular_name %>', :action => 'update<%= suffix %>' %>
|
||||||
|
|
||||||
<%%= link_to 'Show', :action => 'show<%= suffix %>', :id => @<%= singular_name %>.id %> |
|
<%%= link_to 'Show', :action => 'show<%= suffix %>', :id => @<%= singular_name %>.id %> |
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<h1>New <%= @singular_name %></h1>
|
<h1>New <%= @singular_name %></h1>
|
||||||
|
|
||||||
|
<%%= error_messages_for '<%= singular_name %>' %>
|
||||||
<%%= form '<%= singular_name %>', :action => 'create<%= suffix %>' %>
|
<%%= form '<%= singular_name %>', :action => 'create<%= suffix %>' %>
|
||||||
|
|
||||||
<%%= link_to 'Back', :action => 'list<%= suffix %>' %>
|
<%%= link_to 'Back', :action => 'list<%= suffix %>' %>
|
||||||
|
|
Loading…
Reference in a new issue