Sha256: 1f45bd1ad833b9ffa40c8ee27a890ddd0f290997db5f211f5f79b0e348e56c20

Contents?: true

Size: 510 Bytes

Versions: 9

Compression:

Stored size: 510 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

9 entries across 8 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.2.0 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.11 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.7 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.6 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.5 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.4 lib/generators/squeezer/templates/app/views/comments/_form.html.haml
squeezer-0.1.4 app/views/comments/_form.html.haml
squeezer-0.1.3 lib/app/views/comments/_form.html.haml