Sha256: d98f9f4dad4ad6eb7509e4fc71d0bb7c021fbb3731ec3f33c2741e3229e6b825
Contents?: true
Size: 550 Bytes
Versions: 50
Compression:
Stored size: 550 Bytes
Contents
:ruby type = form.jquery_namespace(field).match("billing") ? "billing" : "shipping" = form.collection_select "country_id", Piggybak::Country.send(type), :id, :name, { :selected => form.object.country_id.to_s } - if form.object.country.states.any? = form.collection_select "state_id", form.object.country.states, :id, :name, { :selected => form.object.state_id.to_s } - else = form.text_field "state_id" - if type == "billing" = javascript_include_tag "piggybak.states" :javascript var geodata_lookup = "#{piggybak.orders_geodata_url}";
Version data entries
50 entries across 50 versions & 1 rubygems