Quoting Aljaz Fajmut <email@example.com>:
How do I access blog object/model from the following active record
class Entry < ActiveRecord::Base
In the example above I want to print the blog title.
The class doesn't have a blog, individual entries have blogs.
entry = Entry.find(....whatever, :include => :blog)
The :include option "eager loads" the blog at the same time as the entry.
Without it, the blog will be loaded when the puts statement executes.