Sha256: ee93b86a52c409a8e7b1eb578a326237807a57acce5983d3b6c76eaec76c3d33

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

- semantic_form_for @<%= singular_name %> do |form|
<%- if attributes.empty? -%>
  = form.inputs
<%- else -%>
  - form.inputs do
<%- for attribute in attributes -%>
    = form.input :<%= attribute.name.gsub(/_id$/, '') %>, :label => '<%= attribute.name.titleize %>'
<%- end -%>
<%- end -%>
  = form.buttons

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails3-generators-0.8.2 lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb
rails3-generators-0.8.1 lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb
rails3-generators-0.8.0 lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb