Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I edit or override the footer of ActiveAdmin?

How do I edit or override the footer of Active_Admin?

like image 376
givanse Avatar asked Dec 09 '13 06:12

givanse


2 Answers

Between v1.0.4pre and v.1.0.5pre, the previous method of overriding Footer#build no longer works well, and the new API is

ActiveAdmin.application.footer = proc {
  ...
}
like image 106
Gabe Kopley Avatar answered Sep 29 '22 10:09

Gabe Kopley


If all you want to do is change or delete the 'powered by' message, what you can do is change its value in a locale file. Example, edit config/locales/en.yml

And use something like this:

en:                                                                              
  active_admin:                                                                  
    powered_by: "Powered by hamsters"

Why this works:

The default locale for a rails app is english, the en locale file.

like image 23
givanse Avatar answered Nov 07 '22 01:11

givanse