Displaying 1 result from an estimated 1 matches for "search_cities_url".
2007 Aug 20
0
FormBuilder in rjs
...based on selected state_id:
Page: /customer/new.rhtml
<% form_for :customer, :url => customers_path do |f| %>
State: <%= f.collection_select :state_id, State.find(:all), ''id'',
''description'' %>
<%= observe_field :customer_state_id, :url => search_cities_url, :with
=> ''search[state_id]'' %>
<.div id=''state_div''><%= render :partial => ''city/list'', :object =>
[], :locals => { :f => f } %>
<% end %>
class CustomerController...
def create
@customer = Customer....