Thanks for the replies.  However, changing the Author to:

class Author < ActiveRecord::Base
  has_many :books
end

doesn't change the outcome of the test.  The problem that i'm having
seems to be that the foreign key (Book.author_id) is not being updated
by update_attributes.  This smells like a bug to me.

On May 24, 6:08 am, fRAnKEnSTEin <[email protected]> wrote:
> Jeff Schoolcraft is right.  Your Author model should have this line
>
>  :has_many :books
>
>  In faat you should specify all the db relations in your model files,
> all of them.
>
> cheers
--~--~---------~--~----~------------~-------~--~----~
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