search for: last_tb

Displaying 1 result from an estimated 1 matches for "last_tb".

Did you mean: last_t
2006 May 29
5
Find last
...quot;], :order => ''innoc_date DESC'') => [#<Innoculation:0xb77ed234 @attributes={"id"=>"1", "innoc_type"=>"TB", "personnel_id"=>"1", "innoc_date"=>"2006-05-27"}>] >> @last_tb = @tb[0][:innoc_date] => #<Date: 4907765/2,0,2299161> which says to me that in the personnel model, it should be something like this... def last_tb personnel_id @tb = Innoculation.find(:all, :conditions => ["personnel_id = ? AND innoc_type = ''TB'', personn...