Forum: Ruby on Rails Can't name a class Url?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
schulty (Guest)
on 2005-12-03 22:54
(Received via mailing list)
I have a model class I am using, and it is named Url.  However, it
appears that somehow Rails seems to think I am subclassing or
something, because when trying to access the scaffold for it, I get:

undefined method `rewrite' for #<Url:0x2565f34 @attributes={"org"=>nil},

The rewrite method is a method for the Rails Url class.  Is there
something I am missing with my classes namespace?  I know in Java this
is handled with packaging, how can I avoid the obvious namespace

john david schult
usa : georgia : buford
m: 404.510.5163
This topic is locked and can not be replied to.