blob: b9230025375d3edcfd7dbf1e97c1b343a23fbee8 (
plain)
1
2
3
4
5
6
7
8
9
|
<% title "New Blog Post" %>
<h1>New Post</h1>
<%= form_for @post do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
<%= render partial: "md_editor", locals: {name: "blogpost[content]", content: @post.content} %>
<p><%= f.submit "Create Post", class: "btn blue left" %></p>
<div class="clear"></div>
<% end %>
|