search for: city_zip

Displaying 2 results from an estimated 2 matches for "city_zip".

Did you mean: city_id
2006 Jul 26
4
Dropdown with concatenated columns.
What is the best way to create a drop down where the viewable text in a concatenation of 2 or more columns? For instance, I hane a lookup table with these columns. Model FOO columns: id , name, phone In my drop select tag, I''d like the user to see: "name1 phone1" "name2 phone2" etc.. I know I can do this using find_by_sql . .. But, isn''t there a more
2006 Apr 01
1
piggybacking an action on an autocompleted field
...ork (see code below). I know I could write the autocompletion code myself, but I wonder if there is a simpler/more elegant way? Any idea? TIA Alain The observer solution (that doesn''t work): <%= text_field_with_auto_complete :city, :zip %> <%= observe_field("city_zip", :frequency => 0, :url => { :action => :get_names_for_zip }, <<<---- IS NEVER CALLED :with => "''zip=''+value") %> -- Posted via http://www.ruby-forum.com/.