search for: plants_cm

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

2010 Oct 11
0
Converting observe_field to UJS in Rails 3
...**********........... def search session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @plants_sn = Plant.find(: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&...