Class: Dashing::DashboardsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dashing/dashboards_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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_path
end

#showObject



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_path
end