Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # view
- %h3=h @blog.title
- .entry_box
- .time_box
- =h "gepostet: #{@blog.created_at.to_s(:chatty)}"
- =h @blog.body
- = render 'comment_form'
- - if admin?
- = link_to 'Edit', edit_blog_path(@blog)
- # partial
- %h3 Hinterlasse einen Kommentar
- = form_for Comment.new do |f|
- %p
- %div= f.label :title, 'Titel'
- = f.text_field :title
- %p
- %div= f.label :name, 'Username'
- = f.text_field :name
- %p
- %div= f.label :body, 'Nachricht'
- = f.text_area :body
Add Comment
Please, Sign In to add comment