Corrections to README file
Added note regarding use of label_method instead of underlying text_method
This commit is contained in:
parent
2409933a47
commit
2f5a0fb61b
|
@ -195,7 +195,7 @@ Collections can be arrays or ranges, and when a :collection is given the :select
|
||||||
|
|
||||||
Collection inputs accepts two other options beside collections:
|
Collection inputs accepts two other options beside collections:
|
||||||
|
|
||||||
* label_method => the label method to be applied to the collection to retrieve the label
|
* label_method => the label method to be applied to the collection to retrieve the label (use this instead of the text_method option in collection_select)
|
||||||
|
|
||||||
* value_method => the value method to be applied to the collection to retrieve the value
|
* value_method => the value method to be applied to the collection to retrieve the value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue