ActiveAdmin Comment model not working properly
Look like a bug (ActiveAdmin has it's own built-in Comment
model/class already): https://github.com/gregbell/active_admin/issues/64
A possible workaround could be to give your Comment
model a different name within in app/admin/comments.rb
:
ActiveAdmin.register Comment, :as => "PostComment" do
try this
run in terminal
rails g active_admin:resource ActiveAdmin::Comment
add a following lines in app/admin/active_admin_comment.rb
ActiveAdmin.register ActiveAdmin::Comment, :as => "Comment" do
end
after that edit config/initializers/active_admin
[...]
config.comments_registration_name = "OldComment"
config.show_comments_in_menu = false
[...]
And now you have opportunity to customize a comments in app/admin/active_admin_comment.rb but i still didn't find solution to add :update and :destroy actions