Previously Ruby on Rails developers was spending a lot of time and efforts on developing Admin Interface for their websites. ActiveAdmin made it easy by providing a lot of default functionality.
Active Admin is a Ruby on Rails plugin for generating administration interfaces. It came with a simple implementation and very good interface for admin.
By default ActiveAdmin gives a model called comments on its menu bar, even sometimes the developer doesn’t need it. By customizing few lines of code we can easily remove the default functionality of comments model.
Like this, by default, the ActiveAdmin gives comments option without models.
The gem active_admin provides some files for a developer to customize according to his requirements.
We can remove the Comments menu from the header of the view page by commenting the few lines of code in the application.
First of all, we go to the file config/initializers/active_admin.rb in your favorite editor and uncomment the lines that are shown in the screenshot.
The lines those we are uncommented tells the active admin to not to show the Comments menu in the header of the view page.
Run the Rails server and then reload the server we will get a page with no comments menu.
Feel free to contact us if you have any question regarding Ruby on Rails, We provide free Ruby on Rails Consulting, Hire ruby on rails developer based on your requirement.