Displaying 1 result from an estimated 1 matches for "hands_played_this_month".
2006 May 19
0
No luck with multiple before_filters
...e?(session[:user])
session[:intended_action] = request.request_uri
redirect_to :controller => ''user'', :action => ''signin''
return false
end
end
def check_max_hands
u = current_user
if !u.account_type.unlimited? && u.hands_played_this_month >=
u.account_type.hands
redirect_to :controller => "user", :action => "upgrade"
end
end
current_user just does User.find params[:user]
With my code like that, I get
"Couldn''t find User without an ID"
If I try to do "return false un...