How do I edit or override the footer of ActiveAdmin?

前端 未结 6 1258
南旧
南旧 2021-02-14 09:11

How do I edit or override the footer of Active_Admin?

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 09:58

    From gist create file in lib/footer.rb

    class Footer < ActiveAdmin::Component
      def build
        super :id => "footer"
        span "My Awesome footer"
      end
    end
    

    add to initializers/active_admin.rb

    ActiveAdmin.setup do |config|
     ......some config here....
    
      config.view_factory.footer = Footer
    
     ......some config here....
    end
    

提交回复
热议问题