Sha256: 0c0c1c38ab2dac61fa4d146398a61e7ec584ce140014d1ce6128bf2081720de8

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

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

  .field
    = f.label :title
    = f.text_field :title
  .field
    = f.label :body
    = f.text_area :body
  .actions
    = f.submit 'Save'

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
manifold_mock-0.0.1 test/dummy/app/views/posts/_form.html.haml
templator_chabz-0.9.0 test/dummy/app/views/posts/_form.html.haml