Sha256: 55013eedda9525bbd97c3ee79cec34a5797a8ab74ea3413405f7766c767b8511

Contents?: true

Size: 342 Bytes

Versions: 22

Compression:

Stored size: 342 Bytes

Contents

<%%= semantic_form_for @<%= file_name %> do |form| %>
<%- if attributes.empty? -%>
  <%% form.inputs %>
<%- else -%>
  <%% form.inputs do %>
  <%- for attribute in attributes -%>
    <%%= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' %>
  <%- end -%>
  <%% end %>
<%- end -%>
  <%%= form.buttons %>
<%% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails3-generators-0.9.1 lib/generators/formtastic/scaffold/templates/_form.html.erb.erb
rails3-generators-0.9.0 lib/generators/formtastic/scaffold/templates/_form.html.erb.erb