excid3 / combined_time_select

A Rails time_select like Google Calendar with combined hour and minute time_select
MIT License
61 stars 22 forks source link

Polymorphic association #1

Closed ulugbekov closed 12 years ago

ulugbekov commented 12 years ago

ActiveRecord::MultiparameterAssignmentErrors 2 error(s) on assignment of multiparameter attributes

How to make it work for polymorphic

excid3 commented 12 years ago

Can you post an example of what you're doing that isn't working? The database schema, model, and controller are the important parts.

ulugbekov commented 12 years ago

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