implemented favorites on post/show page
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<div class="comment-preview dtext">
|
||||
<%= form_tag(comments_path, :remote => true) do %>
|
||||
<%= hidden_field "comment", "post_id", :value => post.id %>
|
||||
<%= text_area "comment", "body", :size => "60x7" %>
|
||||
<br>
|
||||
<%= submit_tag "Post" %>
|
||||
<%= submit_tag "Preview" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= form_tag(comments_path) do %>
|
||||
<%= hidden_field "comment", "post_id", :value => post.id %>
|
||||
<%= text_area "comment", "body", :size => "60x7" %>
|
||||
<br>
|
||||
<%= submit_tag "Post" %>
|
||||
<%= submit_tag "Preview" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user