diff --git a/cookbook/015/hodgepodge/app/controllers/application_controller.rb b/cookbook/015/hodgepodge/app/controllers/application_controller.rb index b3b82c4..5aa3f72 100644 --- a/cookbook/015/hodgepodge/app/controllers/application_controller.rb +++ b/cookbook/015/hodgepodge/app/controllers/application_controller.rb @@ -21,7 +21,7 @@ class ApplicationController < ActionController::Base end def access_denied - session[:return_to] = request.request_uri + session[:return_to] = request.fullpath flash[:error] = 'Oops. You need to login before you can view that page.' redirect_to :controller => 'user', :action => 'login' end diff --git a/cookbook/015/hodgepodge/app/views/list/index.html.erb b/cookbook/015/hodgepodge/app/views/list/index.html.erb index ff97809..19ed7d7 100644 --- a/cookbook/015/hodgepodge/app/views/list/index.html.erb +++ b/cookbook/015/hodgepodge/app/views/list/index.html.erb @@ -1,6 +1,6 @@