Class: RacesController

Inherits:
SiteController
  • Object
show all
Includes:
Radiant::Pagination::Controller
Defined in:
app/controllers/races_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



11
12
13
14
# File 'app/controllers/races_controller.rb', line 11

def index
  @races = Race.paginate(pagination_parameters)
  expires_in 1.month, :private => false, :public => true
end

#showObject



6
7
8
9
# File 'app/controllers/races_controller.rb', line 6

def show
  @race = Race.find_by_slug(params[:slug])
  expires_in 1.month, :private => false, :public => true
end