I am using activeadmin gem which is going fine, now i want to add its authentication to some external pages or as MVC you say to some action. don’t mix it with the actions which can be added from admin/users.rd files. these are those action that reside out side of activeadmin.
Share
To use a Devise (which Active Admin uses for authentication) for a page in the same app but not an actual Active Admin page I did the following:
in my routes.rb I added a new route:
then in my products_controller.rb i added a before_filter to restrict access:
Hope that helps!