Rails 3 - Devise With OmniAuth - Redirect after signing in goes to /users/sign_in
Date : March 29 2020, 07:55 AM
|
Restrict access or redirect devise path users/sign_in
Date : March 29 2020, 07:55 AM
wish help you to fix your issue I am creating a rails app. And i have login in such a way that, users are directed or redirect to /login for signing in. And when users/sign_in is passed the it embeds the sign in form into the application layout which i don't want users to see. Is there a way i can redirect users/sign_in to /login or restrict access to it ? , try this. It should works. ;) config/routes.rb
# change :devise_model to :user, or :admin or any name of your devise model
devise_scope :devise_model do
get '/login' => "devise/sessions#new"
end
link_to 'Login', login_url
|
How do I redirect devise sign_in path to a different controller and view? Note:This is before the authentication happens
Date : March 29 2020, 07:55 AM
Hope that helps right now in my app users can sign in at /users/sign_in . But I would rather have them sign in and sign up at a same place so i have a view already created at /home/all. That being said, how do I make sure that every time users go to /users/sign_in or /users/sign_up they are redirect to /home/all ? , You can do this by overriding the devise's default route, get "/users/sign_up" => 'home#all'
get "/users/sign_in" => 'home#all'
|
After user Sign In, why Devise redirect to sign_in view instead of specified path?
Date : March 29 2020, 07:55 AM
Any of those help I have a problem with Devise redirect. By default after user sign in and sign up it will be redirect toroot_path. I want to change that path to playlists_path. , By executing these operation: bundle exec rake db:drop RAILS_ENV=test
bundle exec rake db:create RAILS_ENV=test
bundle exec rake db:schema:load RAILS_ENV=test
|
devise rails application redirecting to users/sign_in
Date : March 29 2020, 07:55 AM
around this issue please update this user password from console this happened because of you only provided only password attribute, you skipped password_confirmation attribute
|