osem-fcy/lib/templates/erb/scaffold/_form.html.erb

12 lines
280 B
Text
Raw Normal View History

2013-01-07 09:04:09 +01:00
<%%= semantic_form_for @<%= singular_name %> do |f| %>
<%%= f.inputs do %>
<%- attributes.each do |attribute| -%>
<%%= f.input :<%= attribute.name %> %>
<%- end -%>
<%% end %>
<%%= f.actions do %>
<%%= f.action :submit, :as => :input %>
<%% end %>
<%% end %>