search for: find_areas_for_country

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

2006 Apr 26
3
drop downs
...oller and even finds the correct country areas, but the results are not getting displayed in the partial - the second drop down just remains blank. Thanks for the help! ************* Controller def new @trip = Trip.new @countries = Country.find(:all) @country_areas = [] end def find_areas_for_country @country_areas = CountryArea.find(:all, :conditions => ["country_id = :country", params]) render(:partial => "country_area", :collection => @country_areas) end *********** form <tr> <td><label for="country">Country</labe...
2006 Jun 09
0
partials and rjs
I must have a misunderstanding of partials, maybe one of you can help me out. I have a page that initially displayed via the following: <-- in controller --> def find_areas_for_country @country_areas = CountryArea.find(:all, :conditions => ["country_id = :country", params], :order => "descr asc") render :partial => ''country_area'' end <-- my partial --> <%= select :country_area, :id, @country_areas.collect {|c| [c...