Class: Tenon::SimpleResourcesController
- Inherits:
-
ResourcesController
- Object
- ApplicationController
- BaseController
- ResourcesController
- Tenon::SimpleResourcesController
- Defined in:
- app/controllers/tenon/simple_resources_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from ResourcesController
#create, #destroy, #initialize, #new, #reorder, #update
Constructor Details
This class inherits a constructor from Tenon::ResourcesController
Instance Method Details
#edit ⇒ Object
9 10 11 |
# File 'app/controllers/tenon/simple_resources_controller.rb', line 9 def edit render partial: 'form', locals: { singular_name => resource } end |
#index ⇒ Object
4 5 6 7 |
# File 'app/controllers/tenon/simple_resources_controller.rb', line 4 def index self.resource = klass.new super end |