You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simple_form_for(foo),url: 'example.org'do |f|
f.input:bar,as: :multi_valueend# This will throw an error if Foo#bar exists, but bar is not an attribute on Foo.
Done when: you can create a MultiValueInput for the values from an an object's method (not just an attribute).
Our use case:
We have a custom input that extends MultiValueInput (similar to inputs in Hyrax).
We need to rearrange some of the object's terms into a different structure that is then passed to our custom input. We use an instance method to do this, but MultiValueInput currently only pays attention to attributes, not instance methods.
The text was updated successfully, but these errors were encountered:
Done when: you can create a
MultiValueInput
for the values from an an object's method (not just an attribute).Our use case:
MultiValueInput
(similar to inputs in Hyrax).MultiValueInput
currently only pays attention to attributes, not instance methods.The text was updated successfully, but these errors were encountered: