Warning: Object#id will be deprecated; use Object#object_id

Is anybody else getting this warning.

When I change @user.id to @user.User_id I am getting no method
definition
present exception. Any thoughts?

Rgds,
–Siva J.
http://www.varcasa.com/
My First Rails Project. Powered by Typo and soon by RForum too

Siva J. wrote:

Is anybody else getting this warning.

When I change @user.id to @user.User_id I am getting no method
definition
present exception. Any thoughts?

in ruby (not rails) .id will be deprecated for .object_id

in rails .id will aways remain…

When you get this warning its probably because you somehow acess the
object outside of rails…

Make sure your @user is the correct class. When I encounter that
message,
it’s usually because the object calling “id” isn’t what I thought it
was.

mmm that could be the problem. I have User class that inherits Guest
class.
I will check and let this group know

On 1/26/06, Bill K. [email protected] wrote:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Rgds,
–Siva J.
http://www.varcasa.com/
My First Rails Project. Powered by Typo and soon by RForum too

I am just using it in my functional tests and application.rb. So i am
not
clear about your answer

On 1/26/06, Mikkel B. [email protected] wrote:

http://lists.rubyonrails.org/mailman/listinfo/rails

Rgds,
–Siva J.
http://www.varcasa.com/
My First Rails Project. Powered by Typo and soon by RForum too

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs