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

14 lines
336 B
Plaintext

<%%= 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 %>