I found it strange, that formular evaluates default values even if I give it with options.
Example:
f.input :foo, value: 'bar'
It tries to call the model method foo, but it is useless, cause the value is given already.
By that pull request this is refactored and makes it possible to build such input fields, even if the model does not has these methods, by providing a value in options.
Thanks
(I know that the erb test is failing again on CI, but this is not my fault)
I found it strange, that formular evaluates default values even if I give it with options. Example:
f.input :foo, value: 'bar'
It tries to call the model method
foo
, but it is useless, cause the value is given already. By that pull request this is refactored and makes it possible to build such input fields, even if the model does not has these methods, by providing a value in options.Thanks
(I know that the erb test is failing again on CI, but this is not my fault)