routes for devise in rails4

16 views
Skip to first unread message

mack gille

unread,
Jul 9, 2013, 1:33:59 AM7/9/13
to rubyonra...@googlegroups.com
hi all,
i am using 3 devises for 3 models in rails4.
i need routes to my devise models.the devises are client,admin,employee.
when i login into client then it will go to clients dashboard, when i
login into admin then it will go to admins dashboard, the employee also
has the employee dashboard.
if i do not enter any login then the common dashboard body message is
please signin.
please let me know how to write routes for them.
Thankyou.

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

Thomas Chik

unread,
Jul 9, 2013, 6:04:01 AM7/9/13
to rubyonra...@googlegroups.com
How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights.

mack gille

unread,
Jul 9, 2013, 6:16:20 AM7/9/13
to rubyonra...@googlegroups.com
Thomas Chik wrote in post #1114847:
> How about an authorization solution like cancan. Have a single sign in
> point and redirects based on user rights.

ya,but my sign in page should has the fields like
username:
password:
rememberme
signin
so how can....

mack gille

unread,
Jul 9, 2013, 9:07:37 AM7/9/13
to rubyonra...@googlegroups.com
mack gille wrote in post #1114848:
> Thomas Chik wrote in post #1114847:
>> How about an authorization solution like cancan. Have a single sign in
>> point and redirects based on user rights.
>
> ya,but my sign in page should has the fields like
> username:
> password:
> rememberme
> signin
> so how can....

@thomas
can you explain me clearly
thankyou
Reply all
Reply to author
Forward
0 new messages