8/6/2023 0 Comments How to use gem editor![]() Those methods are useful to manipulate the given collection. Value_method => the value method to be applied to the collection to retrieve the value ![]() Instead of the text_method option in collection_select) Label_method => the label method to be applied to the collection to retrieve the label (use this Helpers (read Extra Helpers section below for more information).Ĭollection inputs accept two other options beside collections: Those are added by Simple Form to Rails set of form Other types of collectionĪre :radio_buttons and :check_boxes. Rendered by default, so we don't need to pass the as: :select option. Collections can be arrays or ranges, and when a :collection is given the :select input will be
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |