I''ve created a simple signup/login for our site using restful_authentication, but I''d like to add some features while staying with a REST design and I''m not sure what the best route to take is. I''d like: - public ''profile'' page and the ability for users to edit their profile (i.e: /profiles/rob) - ''settings'' page where they can change/update their email/password restful_authentication comes with a User model / Users controller that stores your name/email/password, so I''m thinking the settings page should just be ''/users/rob;edit''. I then think for ''profiles'' it would be good to make it a seperate controller/model and associate it with a user_id. So ''/profiles/rob'', ''/profiles/rob;edit'', and so forth. Anyone have any thoughts or different ways to do this? Rob --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-Jul-17 15:19 UTC
Re: User profiles and settings setup with restful_authentication?
On 7/17/07, rob <rob-n9Q/XG8udXg@public.gmane.org> wrote:> > I''ve created a simple signup/login for our site using > restful_authentication, but I''d like to add some features while > staying with a REST design and I''m not sure what the best route to > take is. I''d like: > > - public ''profile'' page and the ability for users to edit their > profile (i.e: /profiles/rob) > - ''settings'' page where they can change/update their email/password > > restful_authentication comes with a User model / Users controller that > stores your name/email/password, so I''m thinking the settings page > should just be ''/users/rob;edit''. > > I then think for ''profiles'' it would be good to make it a seperate > controller/model and associate it with a user_id. So ''/profiles/rob'', > ''/profiles/rob;edit'', and so forth. > > Anyone have any thoughts or different ways to do this?users/rob would be fine for public profiles. But, do whatever your app needs... -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Cody Skidmore
2007-Jul-17 15:30 UTC
Re: User profiles and settings setup with restful_authentica
rob wrote:> should just be ''/users/rob;edit''.Can someone clue me in about the semi-colon in the above syntax? -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike Garey
2007-Jul-17 17:07 UTC
Re: User profiles and settings setup with restful_authentica
the semi-colon form is now deprecated. It''s now been changed to /users/rob/edit since it wasn''t compatible on all browsers (I think Safari was causing a problem) Mike On 7/17/07, Cody Skidmore <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > rob wrote: > > should just be ''/users/rob;edit''. > > Can someone clue me in about the semi-colon in the above syntax? > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---