How to build App with Roles Admin,User

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

I suggest you to look at, following gems:
Devise -> Authentication
CanCan -> Authorization
rolify -> To manage roles

Hope this would help you.

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

On 15 March 2013 04:53, haxuan lac [email protected] 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

Agile Web D. on Rails book has very good chapter about this

, 15 2013 ., 8:53:45 UTC+4 Ruby-Forum.com User
:

You can use *cancan for Cancan *for role based authorization.

Thanks,
Sai Kiran Mothe
*Founder. *
http://railsconnect.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs