SHOW:
|
|
- or go back to the newest paste.
| 1 | <% flash.each do |key, value| %> | |
| 2 | <p><%= value % ></p> | |
| 3 | <% end %> | |
| 4 | ||
| 5 | ||
| 6 | <h1>Add a New Post</h1> | |
| 7 | <%= form_for @post do |f| %> | |
| 8 | <p> | |
| 9 | <%= f.label :title %><br /> | |
| 10 | <%= f.text_field :title %> | |
| 11 | </p> | |
| 12 | <p> | |
| 13 | <%= f.label :content %><br /> | |
| 14 | <%= f.text_area :content %> | |
| 15 | </p> | |
| 16 | <p> | |
| 17 | <%= f.submit "Submit" %> | |
| 18 | </p> | |
| 19 | - | <% end %> |
| 19 | + | |
| 20 | ||
| 21 | <p><%= link_to "Add a New Post", new_post_path %></p> |