Sha256: a79b4ceba0121c4795a2e7e7d898fcd24ba3635e3dd89ab9e8d5fdaa31480f21

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

= form_for(@<%= singular_name %>) do |f|
  - if @<%= singular_name %>.errors.any?
    #errorExplanation
      %h2= "#{pluralize(@<%= singular_name %>.errors.count, 'error')} prohibited this user from being saved:"
      %ul
      - @<%= singular_name %>.errors.full_messages.each do |msg|
        %li= msg
  
<% for attribute in attributes -%>
  .field
    = f.label :<%= attribute.name %>
    %br
    = f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>

  .actions
    = f.submit

Version data entries

4 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/lib/generators/haml/scaffold/templates/_form.html.haml
sc_core-0.0.7 test/dummy/lib/templates/haml/scaffold/templates/_form.html.haml
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/haml_rails-0.1.0/lib/generators/haml_rails/templates/scaffold/templates/_form.html.haml
haml_rails-0.1.0 lib/generators/haml_rails/templates/scaffold/templates/_form.html.haml