.MD

Copy the markdown below:

ActionView::Template::Error

app/components/status/component.rb:11

undefined method 'ago' for an instance of Integer

Backtrace

app/components/status/component.rb:11:in 'Status::Component#live?'
app/components/status/component.rb:28:in 'Status::Component#message'
app/components/status/component.html.slim:7:in 'Status::Component#call'
app/views/balance/stats/index.turbo_stream.slim:6:in 'block in _app_views_balance_stats_index_turbo_stream_slim__2463331988942246001_12024'
app/views/balance/stats/index.turbo_stream.slim:5:in '_app_views_balance_stats_index_turbo_stream_slim__2463331988942246001_12024'
app/controllers/balance/stats_controller.rb:10:in 'Balance::StatsController#index'
app/controllers/concerns/auto_locale.rb:14:in 'ApplicationController#switch_locale'

Request

Name Balance::StatsController#index
Method GET
URL https://demo.solectrus.de/stats/power_balance/now
Browser FirefoxFirefox 149

Parameters

{
  "action": "index",
  "timeframe": "now",
  "controller": "balance/stats",
  "sensor_name": "power_balance"
}

Headers

Dnt 1
Host demo.solectrus.de
Accept text/html, application/xhtml+xml
Cf-Ray 9ee403fa8feebe61-ZRH
Referer https://demo.solectrus.de/power_balance/now
Sec-Gpc 1
Cdn-Loop cloudflare; loops=1
Priority u=4
X-Real-Ip 172.71.141.67
Cf-Visitor {"scheme":"https"}
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0
Turbo-Frame balance-stats-now
Cf-Ipcountry CH
If-None-Match W/"da586a170bbe71f09c958f278a0a4a09"
Sec-Fetch-Dest empty
Sec-Fetch-Mode cors
Sec-Fetch-Site same-origin
Accept-Encoding gzip, br
Accept-Language de-CH,de;q=0.9,de-DE;q=0.8,en;q=0.7,en-US;q=0.6
X-Forwarded-For 2a02:16a:c00:78:2da3:1e90:ebdf:b032, 172.71.141.67
Cf-Connecting-Ip 2a02:16a:c00:78:2da3:1e90:ebdf:b032
X-Forwarded-Host demo.solectrus.de
X-Forwarded-Port 443
X-Forwarded-Proto https
X-Forwarded-Server app.traefik.completho.de
X-Turbo-Request-Id 77f7f4c7-24ae-4da9-9d16-afd003ca89ac

Context

controller
#<Balance::StatsController:0x0000750a144480c0>

Environment

os Linux 6.8.0-106-generic
cwd /app
pid 1
host app.demo.solectrus.de
ruby ruby 4.0.2 (2026-03-17 revision d3da9fec82) +YJIT +PRISM [x86_64-linux-musl]
rails 8.1.3
revision v1.1.1-158-gc54d9d8

Server

Load CPU RAM Swap Disk
app.demo.solectrus.de Load avg 4% CPU 5% RAM 73% Swap 97% Disk 14%

Deployments 1

v1.1.1-158-gc54d9d8 18 Apr 13:26