Thanks a lot Rick!
On Jun 9, 1:03 pm, Rick DeNatale <[email protected]> wrote: > On Tue, Jun 9, 2009 at 11:45 AM, tivrfoa<[email protected]> 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 --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

