I see this warning in my log ../app/models/user.rb:179: warning: Object#id will be deprecated; use Object#object_id I am using in my user model ''self.id'' to the mysql record id of the user which gives me correctly 25 the self.object_id is not the sql record id... ... whta''s the right writing ?? thanks kad -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kad Kerforn wrote:> I see this warning in my log > > ../app/models/user.rb:179: warning: Object#id will be deprecated; use > Object#object_id > >Usually this error occurs when you call id on something that isn''t an ActiveRecord::Base object. Check all possible calls of #id at line 179 of user.rb. Then insert "puts object.class.name" debug statement for each object on which you call id to verify the actual class. Lionel --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---