This pull introduces Geocoder for IP-based preselection of city, state, country_code, postal_code. It integrates some conveniences with the coffeescript to clear selection if country changes, as well as a new :field_order so that developers may choose to render fields in a different order. In particular when using IP based detection, it makes more sense to verify country selection first, as four of the other selection are already prefilled based on it's value.
I've detailed the options in the readme, and I think this is a very nice addition. There is no requirement to use Geocoder if one should choose not to, and I don't believe any of the changes have any backwards compatibility implications.
As far as I can tell this is good to release (as long as travis passes).
This pull introduces Geocoder for IP-based preselection of city, state, country_code, postal_code. It integrates some conveniences with the coffeescript to clear selection if country changes, as well as a new
:field_order
so that developers may choose to render fields in a different order. In particular when using IP based detection, it makes more sense to verify country selection first, as four of the other selection are already prefilled based on it's value.I've detailed the options in the readme, and I think this is a very nice addition. There is no requirement to use Geocoder if one should choose not to, and I don't believe any of the changes have any backwards compatibility implications.
As far as I can tell this is good to release (as long as travis passes).