Displaying 3 results from an estimated 3 matches for "registrations_control".
2010 Dec 17
1
flash[;notice] not display after redirection
...sage.to_s
debugger
expire_session_data_after_sign_in!
redirect_to after_inactive_sign_up_path_for(resource)
end
else
clean_up_passwords(resource)
render_with_scope :new
end
end
the flash notice is set ... I checked it in the console:
>/users/registrations_controller.rb:27
>expire_session_data_after_sign_in!
>(rdb:2) flash {:notice=>"You have signed up successfully. However, we could not sign
you in because your account is unconfirmed."}
hiwever when the home page is displayed ... ( layout code ..)...
2010 Nov 12
1
Devise after_sign_up_path_for - how to?
Hi,
I''m new to devise and I''m having a problem overwriting a controller.
After sign-up I want the user to go to a static page.
In the controllers folder I have created
users/registrations_controller.rb
class Users::RegistrationsController < Devise::RegistrationsController
def after_sign_up_path_for(resource)
puts "If I coould see this..."
redirect_to account_created_path
end
end
I have the views for users/registrations as instructed by the
documen...
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday.
I would go to the root of my site and I would get a Too Many Redirects
message. It seems like there was an infinite loop. After struggling for
over an hour yesterday late at night, it seemed like I fixed it.
But now, when I want to create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I