Closed kriom closed 2 months ago
Hi,
I would like to be able to give a method as symbol for the collection with, for example
class User #... def locales [:"en-US", :"fr-FR", :"es-ES", :"ja-JP", :"zh-CN"] end #... end
I would like to do that in my view
form.input(:locale, collection: :locales, include_blank: false)
rather than :
form.input(:locale, collection: form.object.locales, include_blank: false)
Is it feasible? ?
@kriom hey! Thanks for the PR but I don't think it gives that much value to support one more way to pass a collection.
OK no problem, thanks for the answer
Hi,
I would like to be able to give a method as symbol for the collection with, for example
I would like to do that in my view
rather than :
Is it feasible? ?