Rails 4.0 param is missing or the value is empty

前端 未结 2 960
夕颜
夕颜 2021-01-16 13:46

I have an Opportunity model that has a nested resource Link. In my views/opportunities/show page when I click on \"DestroY\' for one of the links, I get the error:

p

2条回答
  •  鱼传尺愫
    2021-01-16 13:52

    I had the same error. U must be using before_action :link_params at the top, instead do this before_action :link_params,only: [:create]

提交回复
热议问题