Class: AutoAdmin::ResourcesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AutoAdmin::ResourcesController
- Defined in:
- app/controllers/auto_admin/resources_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 |
# File 'app/controllers/auto_admin/resources_controller.rb', line 3 def index @node = Node.nodes[params[:node]] @resources = @node.klass.all end |
#show ⇒ Object
8 9 10 11 |
# File 'app/controllers/auto_admin/resources_controller.rb', line 8 def show @node = Node.nodes[params[:node]] @resource = @node.klass.find(params[:id]) end |