Sha256: 7cb7f792d47f9966e390b07a6331b2bd98f2638a5863c0f5bc6927df68923907

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

<%%= form_for(@<%= singular_table_name %>) do |f| %>
  <%- object = "@#{singular_table_name}" -%>
  <%%= render 'error_messages', <%= key_value :target, object %> %>

<%- attributes.each do |attribute| -%>
  <div class="field">
    <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </div>
<%- end -%>
  <div class="actions">
    <%%= f.submit %>
  </div>
<%% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rieles-0.0.5 lib/templates/erb/scaffold/_form.html.erb
rieles-0.0.4 lib/templates/erb/scaffold/_form.html.erb
rieles-0.0.3 lib/templates/erb/scaffold/_form.html.erb
rieles-0.0.2 lib/generators/rieles/templates/_form.html.erb