We are wanting to add a help page to our admin and we are using the active admin gem. This page is not associated to any model so I am struggling trying to figure out how to get the link to show up in the menu bar on every page.
Share
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.
Warning: this is hopelessly outdated, and not relevant in 2020 anymore. This was for activeadmin <0.7 versions.
Make a file /app/models/help.rb with this contents, for more advanced tableless models you might want to check out http://keithmcdonnell.net/activerecord_tableless_model_gem.html or google your own insight together.
add an entry to /config/initializers/inflections.rb
set up a route for your viewlogger, in config/routes.rb:
now you can formulate the activeadmin register block as follows (make you sure you create a view partial in the right place)