[Rails]
Re: warning: Object#id will be deprecated; use Object#object
Mikkel Bruun
mikkel at helenius.dk
Thu Jan 26 09:18:26 GMT 2006
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/.
More information about the Rails
mailing list