Skip to content

Commit

Permalink
switch param name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hansen committed Aug 1, 2010
1 parent 10c995a commit 1eb3df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/organizations/_organization_form.html.haml
Expand Up @@ -4,7 +4,7 @@
= form.input :street_address2, :label => "Street Address 2"
= form.input :geo_country, :label => 'Country:', :as => :select, :input_html => {:class => 'geo_country_select', 'data-related-child'.to_sym => '.geo-state-select'}, :collection => GeoCountry.all.map {|country| [country.name, country.id]}
- state_collection = form.object.geo_country ? form.object.geo_country.find_related_geo_states : []
= form.input :geo_state, :label => 'State/Province: ', :as => :select, :input_html => {:class => 'geo-state-select', 'data-param'.to_sym => 'geo_country_id', 'data-src'.to_sym => geo_states_path(:format => 'json'), 'data-cache'.to_sym => 'geo_state_select'}, :collection => state_collection.map {|state| [state.name, state.id]}
= form.input :geo_state, :label => 'State/Province: ', :as => :select, :input_html => {:class => 'geo-state-select', 'data-param'.to_sym => 'geo_state[geo_country_id]', 'data-src'.to_sym => geo_states_path(:format => 'json'), 'data-cache'.to_sym => 'geo_state_select'}, :collection => state_collection.map {|state| [state.name, state.id]}
= form.input :city, :label => "City"
= form.input :postal_code, :label => "Postal Code"
= form.input :phone, :label => "Phone"
Expand Down

0 comments on commit 1eb3df2

Please sign in to comment.