Nested Objects With Strong Parameters In Rails

Posted By Weston Ganger

I was working on an application that used a JSONB column and I was storing a lot of nested objects. One issue I came across was trying to get strong parameters to work with the nested objects, it would always complain.

Heres some example data:

  "name": "my name",
  "user_settings": [
      "theme": "red"
      "mute": true

Related External Links:

Article Topic:Software Development - Ruby / Rails

Date:November 08, 2016