Sha256: f95496c4b71a91b2986626b79dcc4ab71fcc3896cf19860c0f88085690c8e746
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
<h1><%= class_name %> controller, edit action</h1> <p>Edit this file in <tt>app/views/<%= file_name %>/edit.html.erb</tt></p> <%%= error_messages_for :<%= singular_model %> %> <%% form_for(@<%= singular_model %>, :action => url(:<%= singular_model %>, @<%= singular_model %>)) do %> <% for property in properties.select{|p| !p.key?} -%> <p> <%%= text_control :<%= property.getter %>, :label => "<%= Extlib::Inflection.humanize(property.field) %>" %> </p> <% end -%> <p> <%%= submit_button "Update" %> </p> <%% end %> <%%= link_to 'Show', url(:<%= singular_model %>, @<%= singular_model %>) %> | <%%= link_to 'Back', url(:<%= plural_model %>) %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb_datamapper-0.9.4 | lib/generators/templates/views/edit.html.erb |
merb_datamapper-0.9.5 | lib/generators/templates/views/edit.html.erb |