Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## partial new_comment
- <h1>Nowy komentarz</h1>
- <% form_for(@post.comments.new) do |f| %>
- <p>
- <%= f.label :body %><br />
- <%= f.text_area :body %>
- </p>
- <p>
- <%= f.submit "Create" %>
- </p>
- <% end %>
- ## show post
- <p>
- <b>Title:</b>
- <%=h @post.title %>
- </p>
- <p>
- <b>Body:</b>
- <%=h @post.body %>
- </p>
- <p>
- <b>Autor:</b>
- <%=h @post.user.login.capitalize %>
- </p>
- <%= render :partial => "posts/show_comments" %>
- <%= render :partial => "posts/new_comment" %>
- <%= link_to 'Edit', edit_post_path(@post) %> |
- <%= link_to 'Back', posts_path %>
Add Comment
Please, Sign In to add comment