Rails + Devise. Different authentication entry points.

14 views
Skip to first unread message

John Smith

unread,
May 25, 2016, 9:51:24 AM5/25/16
to rubyonra...@googlegroups.com
I'm building a web site. There will be users and admins. Users will have
their own authentication panel and admins must have absolutely different
authentication entry point and administrative panel. I know how to build
a Rails app with one authentication entry point, but how to make an
application with different authentication entry points e.g. /users/login
& /admin/login? Both panels are not connected with each other and have
absolutely different logic.

Thank you for your answers in advance.

--
Posted via http://www.ruby-forum.com/.

Greg Navis

unread,
May 26, 2016, 4:08:57 AM5/26/16
to rubyonra...@googlegroups.com
Devise docs have a section on configuring multiple models: https://github.com/plataformatec/devise#configuring-multiple-models. If you follow the instructions it should work.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fbb84343a04636998f87a78eca6d1f15%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.



--
Greg Navis
I help tech companies to scale Heroku-hosted Rails apps.

Reply all
Reply to author
Forward
0 new messages