getting related object from the active record


How do I access blog object/model from the following active record class:

class Entry < ActiveRecord::Base

belongs_to :blog

def self.test puts blog.title end end

Don't make test a class method - individual instances of Entry have an associated blog, not the class as a whole.