implemented favorites on post/show page

This commit is contained in:
albert
2011-02-07 18:57:33 -05:00
parent c80df378d8
commit 76a7594a97
16 changed files with 164 additions and 32 deletions

View File

@@ -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 %>