19 lines
291 B
Text
19 lines
291 B
Text
|
<h1>New post</h1>
|
||
|
|
||
|
<% form_for(@post) do |f| %>
|
||
|
<%= f.error_messages %>
|
||
|
<p>
|
||
|
<%= f.label :title %><br />
|
||
|
<% a = f.text_field :title %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= f.label :body %><br />
|
||
|
<%#= f.text_area :body %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= f.submit 'Create' %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
|
||
|
<%= link_to 'Back', posts_path %>
|