Displaying 1 result from an estimated 1 matches for "plants_desc".
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
...:all, :conditions => ["scientificname
LIKE ?", "%#{session[:query]}%"], :order => "commonname ASC")
@plants_cm =Plant.find(:all, :conditions => ["commonname LIKE ?",
"%#{session[:query]}%"], :order => "commonname ASC")
@plants_desc =Plant.find(:all, :conditions => ["description
LIKE ?", "%#{session[:query]}%"], :order => "commonname ASC")
@plants = (@plants_cm + @plants_sn + @plants_desc).uniq
render :partial => "shared/searchresults", :layout =>
false, :locals =>...