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/. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/026f1ac0295b0c7e87b893d0d0e4c38a%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/24e3520b-98b9-45a0-bf94-013b3e3a85b8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
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.... -- Posted via http://www.ruby-forum.com/. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/985f55437f55f31a5da407e1b42a05ed%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
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 -- Posted via http://www.ruby-forum.com/. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a800db26efb5ec01f4b2c0f8cf0410a1%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.