Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %h2
- = @post.title
- %p
- = @post.created_at.to_s(:long)
- %p
- :markdown
- = @post.body
- %p
- = link_to 'Edit', edit_post_path(@post)
- = link_to 'Back', posts_path
- %h2 Comments
- = for comment in @post.comments
- :markdown
- = comment.body
- %p
- %small
- = comment.author
- = form_tag :action => "comment", :id => @post
- %p
- %label
- Name:
- %br
- = text_field "comment", "author"
- %p
- %label
- Comment:
- %br
- = text_area "comment", "body"
- %p
- = submit_tag "Comment"
Add Comment
Please, Sign In to add comment