Displaying 1 result from an estimated 1 matches for "state_div".
Did you mean:
state_dir
2007 Aug 20
0
FormBuilder in rjs
...tomers_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.create params[:customer] # => { :state_id
=> X, :city_id => Y }
...
en...