Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Rutger Laurman's Profile

GitHub User: lekkerduidelijk


Comments by Rutger Laurman


I was trying this in Ruby 2, with Rails 4.

The attr_attributes no longer works. Permitting the :fields_attributes didn't cut it, since there is an unknown number of fields. See this

I ended up permitting all parameters with:

I know it's not safe to do so. If somebody knows a proper way to validate the product type params I would love to hear it.