Forum: Ruby on Rails How to build App with Roles Admin,User..

Posted by haxuan lac (haxuanlac)
on 2013-03-15 05:53
I'm trying create Demo Web with Roles Adim,User
I want my Demo have function same as: if user login with Username and
Password of Admin then you can have roles Delete,Edit..and if login as
Username and Password of user is none
I tried with Mysql and someone giveme some advise.Thanks
Posted by news.anand11 (Guest)
on 2013-03-15 06:18
(Received via mailing list)
I suggest you to look at, following gems:
Devise -> Authentication
CanCan -> Authorization
rolify -> To manage roles


Hope this would help you.
Posted by Colin Law (Guest)
on 2013-03-15 09:46
(Received via mailing list)
On 15 March 2013 04:53, haxuan lac <lists@ruby-forum.com> wrote:
> I'm trying create Demo Web with Roles Adim,User
> I want my Demo have function same as: if user login with Username and
> Password of Admin then you can have roles Delete,Edit..and if login as
> Username and Password of user is none
> I tried with Mysql and someone giveme some advise.Thanks

First, if you have not already done so, work right through a good
rails tutorial such as railstutorial.org, which is free to use online.

Colin
Posted by Max Maxwell (aamax)
on 2013-03-17 18:51
(Received via mailing list)
take a look at rails_composer.  it's a great gem which will build a
basic site for you with all the features you're looking for.  The
problem is, without a working knowledge of rails you won't know much
about what to do with the results to make a site that does more than
the basic authentication pieces you're looking at...

good luck,

Max
Posted by Saikiran Mothe (saikiranmothe)
on 2013-03-17 19:38
(Received via mailing list)
You can use *cancan for Cancan *for role based authorization.

Thanks,
Sai Kiran Mothe
*Founder. *
http://railsconnect.com/
Posted by Barry (Guest)
on 2013-03-18 09:15
(Received via mailing list)
Agile Web Development on Rails book has very good chapter about this

, 15  2013 ., 8:53:45 UTC+4  Ruby-Forum.com User
:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.