How to add a link back to the application in ActiveAdmin?

前端 未结 3 1283
陌清茗
陌清茗 2021-01-12 08:35

I need to add a few links to certain pages of the application in the ActiveAdmin pages. I can do this using sidebars, but I\'ll have to repeat the code for each of my resour

3条回答
  •  长发绾君心
    2021-01-12 09:29

    I also wouldn't want to overlook setting config.site_title_link in initializers/active_admin.rb.

    I'm pretty sure it takes a symbol representing the name of a route from your application, for example:

    config.site_title_link = :root
    

    would link the site title to your application's root_path.

提交回复
热议问题