After some research, I moved the creation of the associated objects to
the controller#create, where it belongs, really, and the code worked.

I was getting contradictory results in the console because I was using
the after_save filter. At first, the various builds/associations done in
the after_save filter are reflected in the status of the record in the
console. However, the associations/foreign keys were NOT saved since
they were created after_save. So when I called up the record from the db
again (Course.all), they were gone--tho the associated objects
themselves were in the db.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to