diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb new file mode 100644 index 000000000..7a31ffddd --- /dev/null +++ b/app/controllers/passwords_controller.rb @@ -0,0 +1,7 @@ +class PasswordsController < Devise::PasswordsController + +protected + def after_resetting_password_path_for(resource) + root_path + end +end \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 9f066fa47..360ed2477 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,7 @@ Growstuff::Application.routes.draw do resources :plant_parts - devise_for :members, :controllers => { :registrations => "registrations" } + devise_for :members, :controllers => { :registrations => "registrations", :passwords => "passwords" } resources :members resources :photos