<%= controller_class_name %> controller, new action

Edit this file in app/views/<%= file_name %>/new.html.erb

<%%= error_messages_for :<%= singular_model %> %> <%% form_for(@<%= singular_model %>, :action => url(:<%= plural_model %>) ) do |f| %> <% for property in properties.select{|p| !p.key?} -%>

<%= DataMapper::Inflection.humanize(property.field) %>
<%%= <%= field_from_type(property.type) %> :<%= property.getter %> %>

<% end -%>

<%%= submit_button "Create" %>

<%% end %> <%%= link_to 'Back', url(:<%= plural_model %>) %>