> <%= form_for [@debate, Comment.new], remote: true do |f| %> <%= f.text_area :body, label: t("comments.form.leave_comment") %> <%= f.hidden_field :commentable_type, value: parent.class %> <%= f.hidden_field :commentable_id, value: parent.id %> <%= f.submit comment_button_text(parent), class: "button radius small" %> <% end %>