Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an address multi-field partial #631

Closed
pascallaliberte opened this issue Jan 23, 2023 · 0 comments · Fixed by bullet-train-co/bullet_train-core#86 or #635
Closed

Add an address multi-field partial #631

pascallaliberte opened this issue Jan 23, 2023 · 0 comments · Fixed by bullet-train-co/bullet_train-core#86 or #635
Assignees

Comments

@pascallaliberte
Copy link
Member

Create an address field that:

  • includes all fields for an address: country, postal code, address lines 1 and 2, city, region (state, province, prefecture, etc)
  • has the region and postal code field update themselves depending on the country selected
  • is stored in a separate table, using has_one :billing_address, as: :addressable or something similar allowing for multiple such polymorphic fields per model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment