Displaying 1 result from an estimated 1 matches for "account_created_path".
2010 Nov 12
1
Devise after_sign_up_path_for - how to?
...nt 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
documentation.
In routes I have:
devise_for :users, :controllers => { :registrations =>
"users/registrations" }
match "/account_created" => "info#account_created", :as =>
:accou...