Merge pull request #371 from tygriffin/dev

Fix for bug when redirecting after password reset
This commit is contained in:
Skud
2014-07-18 17:30:14 +10:00
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
class PasswordsController < Devise::PasswordsController
protected
def after_resetting_password_path_for(resource)
root_path
end
end

View File

@@ -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