Closed thisismydesign closed 1 year ago
@thisismydesign thanks for reporting this! We just merged a PR that would fix this by changing the input to work with the association instead of the id, like it is with regular selects. It will be included in the next v2 release
@difernandez Awesome, thanks! This will make the feature much more intuitive to use :)
When I use
f.input :user, as: :select
validation errors on the user correctly show up. However, if I dof.input :user_id, as: :search_select, ...
validation errors no longer show up.I assume this is because the errors belong to
user
and notuser_id
. Any ideas how to solve this?Doc says
Unfortunately this seems to be true.
A workaround is using
f.semantic_errors
.