I need to override devise in a such way that when user sign up or login to redirect him to show_home_url instead of root_path(home#index).But i am not sure if after_sign_up_path_for or after_inactive_sign_up_path_for is what i need.Also whatever choice that is can anybody please show me how to implement that? i am a begginner in ruby.Here is Devise registration controller Thank you very much.
class RegistrationsController < Devise::RegistrationsController
def after_inactive_sign_up_path_for( resource)
end
def after_sign_up_path_for(resource)
end
end
As a start, you should be able to do this:
See the devise wiki for a similar example