search with more then one argument

I think you might want something like

  @gardens = Garden.find(:all, :conditions => ["provincie = ? and heading_id = ? and destroyed = 0", @params[:search], @params[:heading] ]

This variant of :conditions creates a SQL fragment for a where clause that replaces the ?'s in order with the values provided after the first comma (and has the added benefit of preventing SQL injection).

Is the what you were looking for?

Tom

Whoops -- I missed a closing ) after the last ]

:slight_smile: