You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In params you receive an array. But in the deserialize! method it always expect a hash as you can see in the code below
def rename_nested_param_for!(params, dfn)
name = dfn[:name]
nested_name = "#{name}_attributes"
return unless params.has_key?(nested_name)
value = params["#{name}_attributes"]
value = value.values if dfn[:collection]
params[name] = value
end
So maybe you can check if the received value is also an hash. values is not a method Array.
The text was updated successfully, but these errors were encountered:
With a ralis form you can have parameter names with [] as in the next example
In params you receive an array. But in the deserialize! method it always expect a hash as you can see in the code below
So maybe you can check if the received value is also an hash. values is not a method Array.
The text was updated successfully, but these errors were encountered: