rails devise separate form login for different roles -


i have 2 role:

  1. admin
  2. user

i want user each role can login using own form, eg: user admin role can login using url : /admin

i can't find documentation this. there solution?. thanks

you may want take @ article "customize devise support multitenancy authentication" http://climber2002.github.io/blog/2015/03/29/customize-devise-to-support-subdomain-authentication/


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -