Forum: Ruby Serious Bug in Rails 2.2 using method "_ids" ...?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Stefan B. (Guest)
on 2008-12-07 04:00
Hey Guys,

considering the following Model:

class User < ActiveRecord::Base
has_many :posts, :include => [:comments, :ratings], :dependent =>
:destroy
end

This code will raise an ActiveRecord::MissingAttributeError Exception
(comment_id is missing):
@user.post_ids

Can anyone confirm this or does someone have an idea whats going wrong
here? Using Rails 2.2.2

Cheers.
Stefan B. (Guest)
on 2008-12-07 04:02
oops. This was supposed to go into Rails Forum.
This topic is locked and can not be replied to.