<% title "Edit Info: #{@info.title}" %>

Edit Info

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

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

<% end %>

<%= button_to "Delete Info", @info, method: "delete", data: {confirm: "Delete Info forever?"}, class: "btn red right" %>