Class: ActionAgent::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/action_agent/dashboard_controller.rb

Overview

Serves the React dashboard.

Every path under the mount renders this one action; routing below it happens in the browser. Initial state is handed over as a JSON data attribute rather than through Inertia, so the engine works in any host app without adding a frontend framework to it.

Instance Method Summary collapse

Methods inherited from ApplicationController

allow_unauthenticated_access

Instance Method Details

#indexObject



15
16
17
# File 'app/controllers/action_agent/dashboard_controller.rb', line 15

def index
  render "action_agent/dashboard/index", locals: { props: props }
end