search for: get_search_conditions

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

2005 Dec 15
1
Ruby Hash wierdness
...a string ie <%= button_link _("Export CSV"), SearchParams.get_url_hash({ :action => :export_csv, :klass => Customer }, params, @search_fields) %> Customer is a class that is available to my view def export_csv klass = params[:klass] cond = SearchParams.get_search_conditions(klass, params, @search_fields) set_csv_headers(klass) csv_export(klass, cond) end but here klass (and params[:klass]) is a string? What I really want to do is <%= button_link _("Export CSV"), SearchParams.get_url_hash({ :action => :export_csv(Customer) }, pa...