I think you need to try the following
# config/initializers/active_admin.rb
config.namespace :admin do |admin|
admin.build_menu do |menu|
menu.add :label => "<i class='fa fa-tachometer'></i> Dashboard".html_safe, :priority => 1
menu.add :label => "Second Item", :priority => 2
menu.add :label => "Third Item", :priority => 3
end
end
If the font-awesome
library imported then the try upper code.
It should work perfectly.
Hope it helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.