I''d like some help to do both. Either an easy way to do it from scratch or a gem. I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t understand it very well, so thats why I want an easier way (or gem). I''ve been told that the gem Devise does the Authentication, but not the authorization. Is it true? Or can I do authorization with Devise? Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You might want to look into the trinity of devise, cancan and omniauth. That handles everything. Cancan is used for authorization. On Fri, Jul 8, 2011 at 9:43 AM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I''d like some help to do both. > Either an easy way to do it from scratch or a gem. > > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t understand > it very well, so thats why I want an easier way (or gem). > I''ve been told that the gem Devise does the Authentication, but not the > authorization. Is it true? Or can I do authorization with Devise? > > Thank you, > Rodrigo > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
you could try authlogic too. it''s very easy to configure and use. On Jul 8, 5:43 pm, Rodrigo Ruiz <rodrigo.ru...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''d like some help to do both. > Either an easy way to do it from scratch or a gem. > > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t understand > it very well, so thats why I want an easier way (or gem). > I''ve been told that the gem Devise does the Authentication, but not the > authorization. Is it true? Or can I do authorization with Devise? > > Thank you, > Rodrigo-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Jul 8, 2011 at 9:43 AM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I''d like some help to do both. > Either an easy way to do it from scratch or a gem. > > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t understand > it very well, so thats why I want an easier way (or gem). > I''ve been told that the gem Devise does the Authentication, but not the > authorization. Is it true? Or can I do authorization with Devise? > > Thank you, > Rodrigo >Rodrigo, the goal of the Ruby on Rails Tutorial was to teach you the fundamentals of Rails and how to build web applications using the framework. Thus, within one or maybe two of his lessons, he showed you how to build authentication for a Rails application using TDD from scratch. He just wanted you to be familiar with what goes into authentication so that you could better understand gems like Devise and Authlogic. Next, I would highly recommend taking another look at this material within the book and make sure you understand it before jumping into one of the authentication gems. Furthermore, reading the source and documentation of these gems are always a good thing to understand what it''s doing/(not doing) and how it''s being done. In short, the goal of the tutorial is learning Rails using TDD to enforce an understanding of the concepts within the framework. Also, please do not rush the learning process because it''s like building code without tests. :-) Good luck, -Conrad> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Maybe have a look at Cream [1]. It handles authentication, authorization, user roles, and permissions in a single project (making use of devise and cancan). It seems to be actively used and developed. I''ve not yet tried it, but I''m about to make my first steps. [1] https://github.com/kristianmandrup/cream Kenny On Fri, Jul 8, 2011 at 12:43 PM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''d like some help to do both. > Either an easy way to do it from scratch or a gem. > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t understand > it very well, so thats why I want an easier way (or gem). > I''ve been told that the gem Devise does the Authentication, but not the > authorization. Is it true? Or can I do authorization with Devise? > Thank you, > Rodrigo > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thank you very much, I''ll look into it On Sat, Jul 9, 2011 at 4:05 AM, Kenny Meyer <knny.myer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Maybe have a look at Cream [1]. It handles authentication, > authorization, user roles, and permissions in a single project (making > use of devise and cancan). It seems to be actively used and developed. > > I''ve not yet tried it, but I''m about to make my first steps. > > [1] https://github.com/kristianmandrup/cream > > Kenny > > > > On Fri, Jul 8, 2011 at 12:43 PM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > I''d like some help to do both. > > Either an easy way to do it from scratch or a gem. > > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t > understand > > it very well, so thats why I want an easier way (or gem). > > I''ve been told that the gem Devise does the Authentication, but not the > > authorization. Is it true? Or can I do authorization with Devise? > > Thank you, > > Rodrigo > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Actually it is deprecated by the author, and there''s another project called "troles"[1] which looks much better. [1] https://github.com/kristianmandrup/troles Kenny On Sat, Jul 9, 2011 at 10:45 AM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you very much, I''ll look into it > > On Sat, Jul 9, 2011 at 4:05 AM, Kenny Meyer <knny.myer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Maybe have a look at Cream [1]. It handles authentication, >> authorization, user roles, and permissions in a single project (making >> use of devise and cancan). It seems to be actively used and developed. >> >> I''ve not yet tried it, but I''m about to make my first steps. >> >> [1] https://github.com/kristianmandrup/cream >> >> Kenny >> >> >> >> On Fri, Jul 8, 2011 at 12:43 PM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > I''d like some help to do both. >> > Either an easy way to do it from scratch or a gem. >> > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t >> > understand >> > it very well, so thats why I want an easier way (or gem). >> > I''ve been told that the gem Devise does the Authentication, but not the >> > authorization. Is it true? Or can I do authorization with Devise? >> > Thank you, >> > Rodrigo >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Ruby on Rails: Talk" group. >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To unsubscribe from this group, send email to >> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit this group at >> > http://groups.google.com/group/rubyonrails-talk?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
devise+cancan On Sat, Jul 9, 2011 at 10:03 PM, Kenny Meyer <knny.myer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Actually it is deprecated by the author, and there''s another project > called "troles"[1] which looks much better. > > [1] https://github.com/kristianmandrup/troles > > Kenny > > > > On Sat, Jul 9, 2011 at 10:45 AM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Thank you very much, I''ll look into it > > > > On Sat, Jul 9, 2011 at 4:05 AM, Kenny Meyer <knny.myer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> Maybe have a look at Cream [1]. It handles authentication, > >> authorization, user roles, and permissions in a single project (making > >> use of devise and cancan). It seems to be actively used and developed. > >> > >> I''ve not yet tried it, but I''m about to make my first steps. > >> > >> [1] https://github.com/kristianmandrup/cream > >> > >> Kenny > >> > >> > >> > >> On Fri, Jul 8, 2011 at 12:43 PM, Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> wrote: > >> > I''d like some help to do both. > >> > Either an easy way to do it from scratch or a gem. > >> > I saw the way it''s done at Ruby on Rails Tutorial, but couldn''t > >> > understand > >> > it very well, so thats why I want an easier way (or gem). > >> > I''ve been told that the gem Devise does the Authentication, but not > the > >> > authorization. Is it true? Or can I do authorization with Devise? > >> > Thank you, > >> > Rodrigo > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "Ruby on Rails: Talk" group. > >> > To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To unsubscribe from this group, send email to > >> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > For more options, visit this group at > >> > http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rajeev Kannav Sharma<http://www.google.com/search?q=Rajeev+Kannav+Sharma&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.