Polymorphic association
ulugbekov opened this issue · comments
ActiveRecord::MultiparameterAssignmentErrors
2 error(s) on assignment of multiparameter attributes
How to make it work for polymorphic
Can you post an example of what you're doing that isn't working? The database schema, model, and controller are the important parts.
I was able to do it.
params[:company][:company_hours_attributes].each do |p,v|
v.parse_time_select! :open_time
v.parse_time_select! :close_time
end