mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.98k stars 1.19k forks source link

Strong parameters should be an array in the docs #848

Open sina-s opened 7 years ago

sina-s commented 7 years ago

In the docs, an example of strong parameters are given as: params.require(:user).permit(:name, :tag_list) but in order to accept an array of tags in the params, this should be params.require(:user).permit(:name, :tag_list => []) reference: http://edgeguides.rubyonrails.org/action_controller_overview.html#permitted-scalar-values