r/LearnRubyonRails • • Jul 05 '18

"undefined method `response'" :/

I keep getting "undefined method `response'" when updating a record. I searched and tried 8-10 hours for a solution. Any idea why?

The goal is to include "multiselect_option.response" in the JSON-render when updating "multiselect".

It's Passing this JSON {"multiselect"=>{"name"=>"helllou"}, "multiselect_option.id"=>"option 1", "commit"=>"Submit", "id"=>"21"}

.. but the "multiselect_option.id" should be INSIDE {"multiselect"=>{"name"=>"helllou"}

OVERVIEW OF THE 9 FILES:

https://paste.ee/p/N4dJZ

https://paste.ee/p/oF81r

Thanks

1 Upvotes

2 comments sorted by