How can i whitelist params when used with constantize?

x = “SomeClass”

On Monday, April 20, 2015 at 4:05:07 PM UTC+1, der_tom wrote:

x = “SomeClass”>> how can i get the params
whitelisted? thank you!

This shouldn’t make any difference to how you whitelist the params -
what problems are you having?


the problem is my update method:

param not found: employer (@rec is the record to be updated)

and here is the params hash:

“created_at”=>“2015-04-21 13:48:17 UTC”,
“updated_at”=>“2015-04-21 13:48:17 UTC”,
“address_2”=>"", …

On Tue, Apr 21, 2015 at 1:59 AM, Frederick C. <