If I have the following models:
class Section < ActiveRecord::Base
has_many :pages, :dependent => :destroy
end
class Page < ActiveRecord::Base
belongs_to :section
end
And I had a section owning a page, how could I add a link_to that would link to that pages parent? Or, how could I find a page’s owner?
Or, in the view: