mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Use the more modern error_messages from the form object rather than error_messages_for
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<h1>Editing <%= singular_name %></h1>
|
||||
|
||||
<%%= error_messages_for :<%= singular_name %> %>
|
||||
|
||||
<%% form_for(@<%= singular_name %>) do |f| %>
|
||||
<%%= f.error_messages %>
|
||||
|
||||
<% for attribute in attributes -%>
|
||||
<p>
|
||||
<%%= f.label :<%= attribute.name %> %><br />
|
||||
@@ -15,4 +15,4 @@
|
||||
<%% end %>
|
||||
|
||||
<%%= link_to 'Show', @<%= singular_name %> %> |
|
||||
<%%= link_to 'Back', <%= plural_name %>_path %>
|
||||
<%%= link_to 'Back', <%= plural_name %>_path %>
|
||||
@@ -1,8 +1,8 @@
|
||||
<h1>New <%= singular_name %></h1>
|
||||
|
||||
<%%= error_messages_for :<%= singular_name %> %>
|
||||
|
||||
<%% form_for(@<%= singular_name %>) do |f| %>
|
||||
<%%= f.error_messages %>
|
||||
|
||||
<% for attribute in attributes -%>
|
||||
<p>
|
||||
<%%= f.label :<%= attribute.name %> %><br />
|
||||
@@ -14,4 +14,4 @@
|
||||
</p>
|
||||
<%% end %>
|
||||
|
||||
<%%= link_to 'Back', <%= plural_name %>_path %>
|
||||
<%%= link_to 'Back', <%= plural_name %>_path %>
|
||||
Reference in New Issue
Block a user