> Obviously, "class_id = NULL" is incorrect.  My guess is that NULL is
> the return value of a call to c.id, and indeed, c.id return nil.  c.ID
> returns the correct value.  I think that I need to add a method called
> id that returns ID.  Is that right? How do I do that?

Maybe try
set_primary_key 'ID'
instead of
set_primary_key 'id'

?

Robert Pankowecki

-- 
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