Displaying 1 result from an estimated 1 matches for "get_person".
Did you mean:
get_period
2006 Jul 10
4
Session variable data validation
I''ve been using rails for about a month and I''ve been noticing that most
of my controller functions use values from my session variable. I find
that I write something like:
person = Person.find(session[:person]
if( person )
# ...
else
flash[:notice] = "unable to retrieve person"
redirect_to( :action => index )
end
It seems redundant to write similar code for