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

19 lines
437 B
Plaintext
Raw Normal View History

<h1>Editing <%= singular_name %></h1>
2007-02-10 00:12:31 +01:00
<%% form_for(@<%= singular_name %>) do |f| %>
<%%= f.error_messages %>
2007-02-10 00:12:31 +01:00
<% for attribute in attributes -%>
<p>
<%%= f.label :<%= attribute.name %> %><br />
2007-02-10 00:12:31 +01:00
<%%= 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 %>