Sha256: 947b5acdb55774d8c0e0f3f9bcbf8de0e87fe6c454facd66551b0dcfbc020fcf

Contents?: true

Size: 456 Bytes

Versions: 7

Compression:

Stored size: 456 Bytes

Contents

= form_for @page do |f|
  -if @page.errors.any?
    #error_explanation
      %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
      %ul
        - @page.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :user_id
    = f.number_field :user_id
  .field
    = f.label :title
    = f.text_field :title
  .field
    = f.label :content
    = f.text_area :content
  .actions
    = f.submit 'Save'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_role-2.5.4 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.5.3 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.5.2 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.5.1 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.5 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.4 spec/dummy_app/app/views/pages/_form.html.haml
the_role-2.3 spec/dummy_app/app/views/pages/_form.html.haml