Address Field

When you're building forms, use Bullet Train's Field Partials for your form fields. They DRY-up all the presentation logic without needing a third-party dependency like Formtastic.

Read much more about them in the extensive developer documentation.

Samples

Basic

9.2ms 10310 allocs
View Source
<%= render 'shared/fields/address_field', form: form, method: :address_value %>

Options

Name Required Type Default Description
form
ActionView::Helpers::FormBuilder
Reference to the form object
method
String
Attribute of the model