ruby on rails - Authenticate rails_admin with admin attribute -


i want able let users have admin attribute set true access rails_admin. so, if user has is_admin attribute true, can access rails_admin interface.

i have checked documentation , can find authentication here: https://github.com/sferik/rails_admin/wiki/authentication

please, me so?

thanks

from https://github.com/sferik/rails_admin/wiki/authorization

config.authorize_with   redirect_to main_app.root_path unless current_user.is_admin? end 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -