ActiveRecord.Base#save broken after 1.0 upgrade

S

stevenbristol

I have several models which all have has_and_belongs_to_many
releationships with each other. When the create action is called, the
ActiveRecord.Base#save will only save one of these relationships, the
rest will be ignored. When the update action is called the
ActiveRecord.Base#save will then save all of the relationships. Both
actions call the same method to get the values (from the multi-select
box) and populate the accociated objects. Before upgrading to 1.0 this
worked fine. After upgrading it broke. After rolling back it worked
again. Also, it is happening for all the models.

My ISP says they have not heard of this from anyone else, and no one on
irc has heard of it either?

Does anyone have any ideas?

Thanks,
Steven A Bristol
 
E

Eero Saynatkari

I have several models which all have has_and_belongs_to_many
releationships with each other. When the create action is called, the
ActiveRecord.Base#save will only save one of these relationships, the
rest will be ignored. When the update action is called the
ActiveRecord.Base#save will then save all of the relationships. Both
actions call the same method to get the values (from the multi-select
box) and populate the accociated objects. Before upgrading to 1.0 this
worked fine. After upgrading it broke. After rolling back it worked
again. Also, it is happening for all the models.

My ISP says they have not heard of this from anyone else, and no one on
irc has heard of it either?

Does anyone have any ideas?

You will probably have better luck on the Rails mailing list:

http://lists.rubyonrails.org/mailman/listinfo/rails

Also, if possible, include relevants parts of your code
or post them online since this certainly seems to be a
strange problem :)
Thanks,
Steven A Bristol


E
 
S

stevenbristol

THANK YOU!!!

Thanks very much for this information. Are these released? How can I
get the changes?

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top