blob: 4023506024c7bb739a67e041e29adf5f1e0fc3a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<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 %>
|