Active Admin has those handle comments that go automatically into your admin screens by typing “active_admin_comments”
What I want to do is to add some fields to their comments like a ‘status’ field. What’s the best approach for doing this?
Thx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to change defaults, probably the only way is to monkeypatch
build_comment_formmethod ofCommentsclass fromactive_admin_comments.rbYou can also make your own comments component by subclassing
ActiveAdmin::Comments:: Views::Comments, overwritingbuild_comment_formmethod and usingJust see mentioned
active_admin_comments.rbfor reference.