diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/templates/scaffolds/edit.rhtml | 1 | ||||
-rw-r--r-- | actionpack/lib/action_controller/templates/scaffolds/new.rhtml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml b/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml index d877ea1fd6..31e15f7501 100644 --- a/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml +++ b/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml @@ -1,5 +1,6 @@ <h1>Editing <%= @scaffold_singular_name %></h1> +<%= error_messages_for(@scaffold_singular_name) %> <%= form(@scaffold_singular_name, :action => "update" + @scaffold_suffix) %> <%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => instance_variable_get("@#{@scaffold_singular_name}").id %> | diff --git a/actionpack/lib/action_controller/templates/scaffolds/new.rhtml b/actionpack/lib/action_controller/templates/scaffolds/new.rhtml index 02f52e72f5..74db8468bd 100644 --- a/actionpack/lib/action_controller/templates/scaffolds/new.rhtml +++ b/actionpack/lib/action_controller/templates/scaffolds/new.rhtml @@ -1,5 +1,6 @@ <h1>New <%= @scaffold_singular_name %></h1> +<%= error_messages_for(@scaffold_singular_name) %> <%= form(@scaffold_singular_name, :action => "create" + @scaffold_suffix) %> <%= link_to "Back", :action => "list#{@scaffold_suffix}" %>
\ No newline at end of file |