Class: RacesController
- Inherits:
-
SiteController
- Object
- SiteController
- RacesController
- Includes:
- Radiant::Pagination::Controller
- Defined in:
- app/controllers/races_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |