Hi folks! I just want to know the name of the relationship between ActiveRecord and Base. Thanks!!!
on 2009-06-09 17:46
on 2009-06-09 18:04
On Tue, Jun 9, 2009 at 11:45 AM, tivrfoa<email@example.com> wrote: > > Hi folks! > > I just want to know the name of the relationship between ActiveRecord > and Base. > > Thanks!!! ActiveRecord is a global which refers to a Ruby module. One of the functions of a module in Ruby is to define a name space. ActiveRecord::Base is a constant defined in the ActiveRecord name space, which happens to refer to a class. Name spacing allows for the existence of, and distinction between say: ActiveRecord::Base vs ActionController::Base vs ActionView::Base etc. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale
on 2009-06-09 20:18
Thanks a lot Rick!