Sha256: ba3cddf19e061b6a63af1076d747d2594c77924dce2900380469e6eca19d145a

Contents?: true

Size: 511 Bytes

Versions: 6

Compression:

Stored size: 511 Bytes

Contents

- if can? :new, Post
  - form_for Post.new do |p|
    - if Post.new.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 

    = p.hidden_field :comment_id,:value=>table.comment.id 
    -if !current_user
      Nombre
      %br
      =p.text_field :name
      %br
    = p.text_area(:body,:class=>'wysiwyg')
    = wysiwug
    %br
    = p.submit

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
squeezer-0.2.1 app/views/comments/_form.html.haml
squeezer-0.2.0 app/views/comments/_form.html.haml
squeezer-0.1.11 app/views/comments/_form.html.haml
squeezer-0.1.7 app/views/comments/_form.html.haml
squeezer-0.1.6 app/views/comments/_form.html.haml
squeezer-0.1.5 app/views/comments/_form.html.haml