Sha256: ce97d33cb03228241a64682d55bc4baf79fc3fba1a9118a5eaaa96b8b6d633a3
Contents?: true
Size: 1017 Bytes
Versions: 74
Compression:
Stored size: 1017 Bytes
Contents
<% showcase.description do %> 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. <br/> <br/> Read much more about them in the extensive <a href="https://bullettrain.co/docs/field-partials" target="_blank">developer documentation</a>. <% end %> <% form_with model: Scaffolding::CompletelyConcrete::TangibleThing.new, url: "#" do |form| %> <% form.object.address_value = Address.new %> <% showcase.sample "Basic" do %> <%= render 'shared/fields/address_field', form: form, method: :address_value %> <% end %> <% end %> <%# To display further options use `showcase.options.x` as options with a block will clear the old options. See `_options.html.erb` for an example. %> <% showcase.options do |o| %> <% o.required :form, "Reference to the form object", type: "ActionView::Helpers::FormBuilder" %> <% o.required :method, "Attribute of the model" %> <% end %>
Version data entries
74 entries across 74 versions & 1 rubygems