class ActiveAdmin::Comments::Views::Comments
def build_comment_form
def build_comment_form active_admin_form_for(ActiveAdmin::Comment.new, url: comment_form_url) do |f| f.inputs do f.input :resource_type, as: :hidden, input_html: { value: ActiveAdmin::Comment.resource_type(parent.resource) } f.input :resource_id, as: :hidden, input_html: { value: parent.resource.id } f.input :body, label: false, input_html: { size: "80x8" } end f.actions do f.action :submit, label: I18n.t("active_admin.comments.add") end end end