Sha256: 82615756554ab3dc6923ba439045997c595be433ad001e2f19365349c99db6a7

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

= form_for @<%= singular_table_name %> do |f|
  -if @<%= singular_table_name %>.errors.any?
    #error_explanation
      %h2= t(:form_error_explanation, :count => @<%= singular_table_name %>.errors.count, :model => '<%= singular_table_name %>')
      %ul
        - @<%= singular_table_name %>.errors.full_messages.each do |msg|
          %li= msg

<% for attribute in attributes -%>
  .field
    = f.label :<%= attribute.name %>
    = f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
  .actions
    = f.submit

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
haml-rails-with-i18n-0.1.3 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-with-i18n-0.1.2 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-with-i18n-0.1.1 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-with-i18n-0.1.0 lib/generators/haml/scaffold/templates/_form.html.haml