<%= form_for [talkie, Talkie::Comment.new], html: { class: "talkie-comments-form" } do |f| %> <%= f.hidden_field :commentable_id, value: commentable.id %> <%= f.hidden_field :commentable_type, value: commentable.class.name %> <%= f.text_area :body, placeholder: t("talkie.comments.form.body_placeholder"), class: "talkie-comment-body-textarea", required: "required" %> <% if Talkie.mentions_enabled? %>

<%= t("talkie.comments.form.hint_html") %>

<%= f.hidden_field :mention_tokens, class: "comment-mentions" %> <% end %> <%= f.submit t("talkie.comments.form.submit"), class: "talkie-comments-form-submit" %> <% end %>
<%= pluralize commentable.comments.size, t("talkie.comments.count.singular"), plural: t("talkie.comments.count.plural") %>