Class: CatsController
- Inherits:
-
Reloj::ControllerBase
- Object
- Reloj::ControllerBase
- CatsController
- Defined in:
- lib/reloj/skeletons/old_example/app/controllers/cats_controller.rb
Instance Attribute Summary
Attributes inherited from Reloj::ControllerBase
Instance Method Summary collapse
Methods inherited from Reloj::ControllerBase
#already_built_response?, #flash, #initialize, #invoke_action, #redirect_to, #render, #render_content, #session
Methods included from RouteHelper
Constructor Details
This class inherits a constructor from Reloj::ControllerBase
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/reloj/skeletons/old_example/app/controllers/cats_controller.rb', line 3 def create @cat = Cat.new(params["cat"]) if @cat.save redirect_to("/cats") else render :new end end |