Sha256: 201f0111d99a4031d0eb8c97cde6b31298e825f66f45c5f24be0e33af32d9169

Contents?: true

Size: 444 Bytes

Versions: 26

Compression:

Stored size: 444 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 |message|
          li = message

  .field
    = f.label :title
    = f.text_field :title
  .field
    = f.label :body
    = f.text_field :body
  .field
    = f.label :author
    = f.text_field :author
  .actions = f.submit

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sapience-0.2.10 test_apps/rails/app/views/posts/_form.html.slim
sapience-0.2.9 test_apps/rails/app/views/posts/_form.html.slim
sapience-0.2.8 test_apps/rails/app/views/posts/_form.html.slim
sapience-0.2.7 test_app/app/views/posts/_form.html.slim
sapience-0.2.6 test_app/app/views/posts/_form.html.slim
sapience-0.2.5 test_app/app/views/posts/_form.html.slim