Displaying 1 result from an estimated 1 matches for "citycontroller".
Did you mean:
city_controller
2007 Aug 20
0
FormBuilder in rjs
...lass CustomerController...
def create
@customer = Customer.create params[:customer] # => { :state_id
=> X, :city_id => Y }
...
end
end
Partial: /city/_list.rhtml
City: <%= f.collection_select :city_id, list, ''id'', ''name'' %>
class CityController...
def search
@cities = City.find :all, :conditions => params[:search] # =>
{ :state_id => X }
end
RJS: /city/search.rjs
page.replace_html ''state_div'', :partial => ''list'', :object =>
@cities, :locals => { :f => ???? }
My problem...