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 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 For more options, visit https://groups.google.com/groups/opt_out.
I suggest you to look at, following gems: Devise -> Authentication CanCan -> Authorization rolify -> To manage roles Hope this would help you. On Fri, Mar 15, 2013 at 10:23 AM, haxuan lac <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 > > -- > 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 > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 For more options, visit https://groups.google.com/groups/opt_out.
On 15 March 2013 04:53, haxuan lac <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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.ThanksFirst, 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 -- 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 For more options, visit https://groups.google.com/groups/opt_out.
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 viahttp://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 For more options, visit https://groups.google.com/groups/opt_out.
You can use *cancan for Cancan *for role based authorization. Thanks, Sai Kiran Mothe *Founder. * http://railsconnect.com/ On Sun, Mar 17, 2013 at 11:20 PM, Max <aamax-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote:> 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 viahttp://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 > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 For more options, visit https://groups.google.com/groups/opt_out.
Agile Web Development on Rails book has very good chapter about this пятница, 15 марта 2013 г., 8:53:45 UTC+4 пользователь Ruby-Forum.com 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 > > -- > 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/msg/rubyonrails-talk/-/CIn_St8gFGoJ. For more options, visit https://groups.google.com/groups/opt_out.