Hi, I''m working with devise for user system, but after logged in, he redirect the user for the root project. I would like to redirect each type of user for an different page. Someone already did something like that with devise? Thanks! -- *Fernando Aureliano* -- 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.
Hi Fernando, check this link: https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes Devise has a pretty good user group on google, too. Jose is usually pretty responsive with any question. HTH Bill On Jun 6, 2011, at 9:07 PM, Fernando Aureliano wrote:> Hi, I''m working with devise for user system, but after logged in, he redirect the user for the root project. I would like to redirect each type of user for an different page. Someone already did something like that with devise? > > Thanks! > > -- > Fernando Aureliano > > -- > 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.
Hi!! Thanks by the tip! I already read this wiki, is pretty good! But he did not say how to change the route who redirect the user after he has login. I''m join the group to try this response! Thanks!! On Mon, Jun 6, 2011 at 11:01 PM, William K. Hatch Jr. < stompinwilly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Fernando, check this link: > > > https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes > > Devise has a pretty good user group on google, too. Jose is usually pretty > responsive with any question. HTH > > Bill > > > On Jun 6, 2011, at 9:07 PM, Fernando Aureliano wrote: > > > Hi, I''m working with devise for user system, but after logged in, he > redirect the user for the root project. I would like to redirect each type > of user for an different page. Someone already did something like that with > devise? > > > > Thanks! > > > > -- > > Fernando Aureliano > > > > -- > > 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. > >-- *Fernando Aureliano* -------------------------------------------------------------- [iOSDeveloper] - *ObjectiveC* [WebDesigner] - *CSS3&HTML5* *[WebDeveloper] - RubyOnRails* *-------------------------------------------------------------- * [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> -- 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.
Hi Fernando, I think this is the wiki page you''re looking for: https://github.com/plataformatec/devise/wiki/How-to:-redirect-to-a-specific-page-on-successful-sign-in . On Tue, Jun 7, 2011 at 4:33 AM, Fernando Aureliano < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Hi!! > > Thanks by the tip! > > I already read this wiki, is pretty good! But he did not say how to change > the route who redirect the user after he has login. > > I''m join the group to try this response! > > Thanks!! > > > On Mon, Jun 6, 2011 at 11:01 PM, William K. Hatch Jr. < > stompinwilly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi Fernando, check this link: >> >> >> https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes >> >> Devise has a pretty good user group on google, too. Jose is usually pretty >> responsive with any question. HTH >> >> Bill >> >> >> On Jun 6, 2011, at 9:07 PM, Fernando Aureliano wrote: >> >> > Hi, I''m working with devise for user system, but after logged in, he >> redirect the user for the root project. I would like to redirect each type >> of user for an different page. Someone already did something like that with >> devise? >> > >> > Thanks! >> > >> > -- >> > Fernando Aureliano >> > >> > -- >> > 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. >> >> > > > -- > *Fernando Aureliano* > -------------------------------------------------------------- > [iOSDeveloper] - *ObjectiveC* > [WebDesigner] - *CSS3&HTML5* > *[WebDeveloper] - RubyOnRails* > *-------------------------------------------------------------- > * > [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> > - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> > > -- > 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.
I''ve created for the root_path the special method that redirects the user again preserving flash to the place defined by the user''s role. On Jun 7, 9:03 am, Chris Kottom <ch...-kMviOf/NVQxZWXO/OqhO/A@public.gmane.org> wrote:> Hi Fernando, > > I think this is the wiki page you''re looking for:https://github.com/plataformatec/devise/wiki/How-to:-redirect-to-a-sp... > . > > On Tue, Jun 7, 2011 at 4:33 AM, Fernando Aureliano < > > m...-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: > > Hi!! > > > Thanks by the tip! > > > I already read this wiki, is pretty good! But he did not say how to change > > the route who redirect the user after he has login. > > > I''m join the group to try this response! > > > Thanks!! > > > On Mon, Jun 6, 2011 at 11:01 PM, William K. Hatch Jr. < > > stompinwi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> Hi Fernando, check this link: > > >>https://github.com/plataformatec/devise/wiki/How-To:-Change-the-defau... > > >> Devise has a pretty good user group on google, too. Jose is usually pretty > >> responsive with any question. HTH > > >> Bill > > >> On Jun 6, 2011, at 9:07 PM, Fernando Aureliano wrote: > > >> > Hi, I''m working with devise for user system, but after logged in, he > >> redirect the user for the root project. I would like to redirect each type > >> of user for an different page. Someone already did something like that with > >> devise? > > >> > Thanks! > > >> > -- > >> > Fernando Aureliano > > >> > -- > >> > 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@googlegroups.com. > >> > 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-/JYPxA39Uh5TLH3MbocFFw@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. > > > -- > > *Fernando Aureliano* > > -------------------------------------------------------------- > > [iOSDeveloper] - *ObjectiveC* > > [WebDesigner] - *CSS3&HTML5* > > *[WebDeveloper] - RubyOnRails* > > *-------------------------------------------------------------- > > * > > [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> > > - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> > > > -- > > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.