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