Class: Cmsimple::PathsController
- Inherits:
-
Object
- Object
- Cmsimple::PathsController
- Defined in:
- app/controllers/cmsimple/paths_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/cmsimple/paths_controller.rb', line 10 def create @path = Path.new(params[:path]) @path.save respond_with @path end |
#destroy ⇒ Object
16 17 18 19 20 |
# File 'app/controllers/cmsimple/paths_controller.rb', line 16 def destroy @path = Path.find(params[:id]) @path.destroy respond_with @path end |
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/cmsimple/paths_controller.rb', line 5 def index @paths = Path.all respond_with @paths end |