class EntriesController < ApplicationController layout "blog" def index @entries = Entry.find( :all, :order => "created_at DESC", :limit => 10 ) end def show @entry = Entry.find(params['id'],:include => 'comments') end end