Sha256: 69f497c0651fbc482a4eb674a8731537baafbc05271ed0137ae13c8e243e2fb5

Contents?: true

Size: 541 Bytes

Versions: 18

Compression:

Stored size: 541 Bytes

Contents

= form_for @<%= singular_table_name %> do |f|
  - if @<%= singular_table_name %>.errors.any?
    #error_explanation
      %h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
      %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 'Save'

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
hamlit-rails-0.2.3 lib/generators/haml/scaffold/templates/_form.html.haml
hamlit-rails-0.2.2 lib/generators/haml/scaffold/templates/_form.html.haml
hamlit-rails-0.2.1 lib/generators/haml/scaffold/templates/_form.html.haml
hamlit-rails-0.2.0 lib/generators/haml/scaffold/templates/_form.html.haml
effective_developer-0.0.8 app/scaffolds/views/_form.html.haml
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/haml-rails-0.9.0/lib/generators/haml/scaffold/templates/_form.html.haml
hamlit-rails-0.1.0 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.9.0 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.8.2 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.8.1 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.8.0 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.7.0 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.6.0 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.5.3 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.5.2 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.5.1 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.4 lib/generators/haml/scaffold/templates/_form.html.haml
haml-rails-0.3.5 lib/generators/haml/scaffold/templates/_form.html.haml