Class: MyDashboard::DashboardsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MyDashboard::DashboardsController
- Defined in:
- app/controllers/my_dashboard/dashboards_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/my_dashboard/dashboards_controller.rb', line 8 def index render file: dashboard_path(MyDashboard.config.default_dashboard || MyDashboard.first_dashboard || ''), layout: MyDashboard.config.dashboard_layout_path end |
#show ⇒ Object
12 13 14 |
# File 'app/controllers/my_dashboard/dashboards_controller.rb', line 12 def show render file: dashboard_path(params[:name]), layout: MyDashboard.config.dashboard_layout_path end |