Devise will look for a scoped model "root path" to redirect, and then if it doesn't find one, it will redirect to root page.
So, if your model is "User", u can create something like this in your routes.rb: get "begin", to: "services#new", as: "user_root" This way you can redirect to whichever view you want. 2014-05-13 18:49 GMT-03:00 Cristian Hoyos <[email protected]>: > I have this: > > class Users::SessionsController < Devise::SessionsController > > def after_sign_in_path_for(resource) > super > end > > super redirect to root_path and i dont want to do it. I need to redirect > other view > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/bd12818c-33ec-4462-81f6-f9a82efe6861%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/bd12818c-33ec-4462-81f6-f9a82efe6861%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Att, Antônio Augusto de Sousa Britto - 43ª turma de Ciência da Computação - UFU -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAK6FffKZUrC4_LHN%2BYfSC4xmgmWBfr%3D%2ByWtn0auQsJ4g99MdJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

