Sha256: 81d930b8920f397b08b716c757560305e1132d72d9d90968257066d58b6a8259
Contents?: true
Size: 1.14 KB
Versions: 16
Compression:
Stored size: 1.14 KB
Contents
<% # formstrap/association # # ==== Required parameters # * +attribute+ - Name of the association # * +form+ - Form object # # ==== Optional parameters # * +collection+ - Values to create option tags for # # # ==== Examples # Basic version # <%= form_with do |form| %#> # <%= render "formstrap/association", form: form, attribute: :product %#> # <% end %#> association = Formstrap::AssociationView.new(local_assigns) %> <%= render "formstrap/wrapper", association.wrapper_options do %> <%= render "formstrap/label", association.label_options if association.prepend_label? %> <%= render "formstrap/input_group", association.input_group_options do %> <%= form.select(association.attribute_with_id, formstrap: false, choices: association.collection, options: association.select_options, html_options: association.input_options) %> <% end %> <%= render "formstrap/validation", association.validation_options if association.validate? %> <%= render "formstrap/hint", association.hint_options if association.hint? %> <%= render "formstrap/label", association.label_options if association.append_label? %> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems