adds comments to debates [#7]

This commit is contained in:
rgarcia
2015-07-18 17:38:57 +02:00
parent 05705f3174
commit 98463e4930
5 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<%= form_for [@debate, Comment.new] do |f| %>
<%= f.text_area :body %>
<%= f.hidden_field :commentable_type, value: parent.class %>
<%= f.hidden_field :commentable_id, value: parent.id %>
<%= f.submit 'Publicar comentario' %>
<% end %>