Sha256: 4c97bfe3801383809783e6ab3b42ceae2d0104697ff4a4b1351c0da824a39953
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
<h1><%= class_name %> controller, new action</h1> <p>Edit this file in <tt>app/views/<%= file_name %>/new.html.erb</tt></p> <%%= error_messages_for :<%= singular_model %> %> <%% form_for(@<%= singular_model %>, :action => url(:<%= plural_model %>) ) do |f| %> <% for property in properties.select{|p| !p.key?} -%> <p> <%%= text_control :<%= property.getter %>, :label => "<%= Extlib::Inflection.humanize(property.field) %>" %> </p> <% end -%> <p> <%%= submit_button "Create" %> </p> <%% end %> <%%= 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/new.html.erb |
merb_datamapper-0.9.5 | lib/generators/templates/views/new.html.erb |