Here's the code.
Application_controller.rb---------------------------------
class ApplicationController < ActionController::Base
filter_parameter_logging :password, :password_confirmation
helper_method :current_user_session, :current_user
private
def current_user_session
return @current_user_session if defined?
(@current_user_session)
@current_user_session = UserSession.find
end
protected
def current_user
return @current_user if defined?(@current_user)
@current_user = current_user_session &&
current_user_session.user
end
end
----------------------------------------
Thanks for your help.
Kevin
On Oct 17, 11:56 pm, "bagwan.pankaj" <
bagwanpan...@gmail.com> wrote:
> HiKevin
>
> If I am getting it right then
> either
> you haven't declared require_no_user in your application controller.
> or
> haven't set up it before_filter in application controller.
>
> Please paste your code so that I can solve your problem precisely.
>
>
http://blog.railsjaipur.in/
>