foodsoft/lib/templates/erb/scaffold/_form.html.erb

13 lines
336 B
Text

<%%= simple_form_for(@<%= singular_name %>) do |f| %>
<%%= f.error_notification %>
<div class="inputs">
<%- attributes.each do |attribute| -%>
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
<%- end -%>
</div>
<div class="actions">
<%%= f.button :submit %>
</div>
<%% end %>