On Tue, Nov 25, 2008 at 11:04 AM, s.ross <[EMAIL PROTECTED]> wrote:
> In Rails, the primary key, by default 'id', is used all over the > place. However, Ruby now deprecates the use of constructs like: > > @post = Post.find(:first) > @post_id = @post.id > These are different methods. Object#id is indeed deprecated, but ActiveRecord::Base#id is perfectly fine. ///ark
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
