Tech blog of a rails contractor.
This one got me the other day... it seems that sometimes the following won't work:
params.require(:my_thing).permit(:widget_ids)
When the set of ids is expected to be an array, instead use
params.require(:my_thing).permit(:widget_ids => [])
Post a Comment
No comments:
Post a Comment