search for: statistics_2005

Displaying 2 results from an estimated 2 matches for "statistics_2005".

2006 Mar 25
4
dynamic set_table_name for achives
...ion[:current_period] set_table_name "statistics_" + @session[:archive_year] else set_table_name "statistics_" + Date.now.year end But since I cannot access the session from within a model how do I tell the model to archive data which is held in a different table eg. "statistics_2005" ? Many thanks, K. -- Posted via http://www.ruby-forum.com/.
2006 Mar 25
1
Re: Rails Digest, Vol 18, Issue 656
..._name "statistics_" + @session[:archive_year] > else > set_table_name "statistics_" + Date.now.year > end > > But since I cannot access the session from within a model how do I tell > the model to archive data which is held in a different table eg. > "statistics_2005" ? > > > Many thanks, K. > > > -- > Posted via http://www.ruby-forum.com/. > > > ------------------------------ > > Message: 5 > Date: Sat, 25 Mar 2006 09:25:34 -0500 > From: "Nick Stuart" <nicholas.stuart@gmail.com> > Subject: Re: [...