search for: geotag_opt

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

2005 Dec 01
0
problem with options_from_collection_for_select() need id not name
...geotag_id=params[:geotag_id].nil? ? -2 : params[:geotag_id] else @geotag_id=params[:geotag][:id].blank? ? -1:params[:geotag][:id] end else @geotag_id = -1 end i use this @geotags = Geotag.find(:all, :conditions =>[''firm_id = ? and client_id = ? '', firm_id, client_id]) @geotag_options = @geotags.collect {|g| [g.address1 + ", " + g.address2 + ", " +g.floor + ", " + g.city ,g.id]} <%= select("geotag", "id", @geotag_options) %><br/> <select name="geotag[id]"> <option value="%">All&lt...