Rails 4 Unpermitted Parameters for Array

前端 未结 5 804
忘掉有多难
忘掉有多难 2020-12-07 22:07

I have an array field in my model and I\'m attempting to update it.

My strong parameter method is below

def post_params
  params[\"post\"][\"categor         


        
5条回答
  •  难免孤独
    2020-12-07 22:44

    I had the same problem but in my case I had also to change from:

    to:

    Hope this is helping someone.

提交回复
热议问题