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