Class: CountersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CountersController
- Defined in:
- app/controllers/counters_controller.rb
Overview
A stupid little controller showing how easy you can build generic “counter” functionality when they’re represented as a model
Instance Method Summary collapse
-
#destroy ⇒ Object
Reset a counter to 0.
-
#update ⇒ Object
Recalculate a counter.