Siva Jagadeesan
2006-Jan-26 09:02 UTC
[Rails] 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 Jagadeesan http://www.varcasa.com/ My First Rails Project. Powered by Typo and soon by RForum too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/ad1d5dd7/attachment.html
Mikkel Bruun
2006-Jan-26 09:18 UTC
[Rails] Re: warning: Object#id will be deprecated; use Object#object
Siva Jagadeesan 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... -- Posted via http://www.ruby-forum.com/.
Bill Katz
2006-Jan-26 09:30 UTC
[Rails] warning: Object#id will be deprecated; use Object#object_id
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. On 1/26/06, Siva Jagadeesan <sivajagdev@gmail.com> 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? > > > Rgds, > --Siva Jagadeesan > http://www.varcasa.com/ > My First Rails Project. Powered by Typo and soon by RForum too > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/b740b77b/attachment.html
Siva Jagadeesan
2006-Jan-26 14:06 UTC
[Rails] Re: warning: Object#id will be deprecated; use Object#object
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 Bruun <mikkel@helenius.dk> wrote:> > Siva Jagadeesan 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... > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Powered by Typo and soon by RForum too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/a68448b8/attachment-0001.html
Siva Jagadeesan
2006-Jan-26 14:08 UTC
[Rails] warning: Object#id will be deprecated; use Object#object_id
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 Katz <billkatz@gmail.com> wrote:> > 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. > > On 1/26/06, Siva Jagadeesan <sivajagdev@gmail.com> 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? > > > > > > Rgds, > > --Siva Jagadeesan > > http://www.varcasa.com/ > > My First Rails Project. Powered by Typo and soon by RForum too > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Powered by Typo and soon by RForum too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/7d1043f2/attachment.html