<% title "Edit Comment: #{@comment.blogpost.title}" %>

Edit comment

<%= form_for [@comment.blogpost, @comment] do |f| %> <%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content} %>

<%= f.submit "Update Comment", class: "btn blue left" %>

<% end %>

<%= button_to "Delete comment", [@comment.blogpost, @comment] , method: "delete", data: {confirm: "Delete comment forever?"}, class: "btn red right" %>