instiki/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb

20 lines
463 B
Plaintext
Raw Normal View History

<h1>Editing <%= singular_name %></h1>
2007-02-10 00:12:31 +01:00
<%%= error_messages_for :<%= singular_name %> %>
<%% form_for(@<%= singular_name %>) do |f| %>
2007-02-10 00:12:31 +01:00
<% for attribute in attributes -%>
<p>
<b><%= attribute.column.human_name %></b><br />
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
</p>
<% end -%>
<p>
<%%= f.submit "Update" %>
2007-02-10 00:12:31 +01:00
</p>
<%% end %>
<%%= link_to 'Show', @<%= singular_name %> %> |
<%%= link_to 'Back', <%= plural_name %>_path %>