Displaying 1 result from an estimated 1 matches for "guestbook_id".
2008 May 26
11
doesn't create my guestbook
...t;title", "body",
"created_at" and "updated_at". This one does NOT get created, resulting
in (for example) "nil.title". (guestbook.title)
Then I''ve got a "notes table" containing "id" of the notes, "user_id",
"guestbook_id", "body" and "created_at".
The realtions may be wrong here (at least that is what I suspect
although I can''t see why they wouldn''t).
user.rb
has_many :notes,
:order => "created_at DESC",
:dependent => :destroy
has_one :...