Sha256: 8eaa05ec0190083e7ce4af5f038eede29998da523c3dec2312fcd24669d18429
Contents?: true
Size: 537 Bytes
Versions: 24
Compression:
Stored size: 537 Bytes
Contents
:ruby type = form.object.is_shipping ? "shipping" : "billing" = 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" :javascript var geodata_lookup = "#{piggybak.orders_geodata_url}"; - if type == "billing" = javascript_include_tag "piggybak/piggybak.states"
Version data entries
24 entries across 24 versions & 1 rubygems