search for: innoc_date

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

2006 May 29
5
Find last
This seems rather ugly. I am thinking that this needs to be in the model but I am looking to obtain the date for a tb test... >> @tb = Innoculation.find(:all, :conditions => ["personnel_id = 1 AND innoc_type = ''TB''"], :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...