.MD

Copy the markdown below:

ActionView::Template::Error

/gems/files/show.html.erb:7

undefined method `content' for nil

Backtrace

app/views/gems/files/show.html.erb:7:in `block in _app_views_gems_files_show_html_erb__150086518641140950_34440'
app/components/gems/wrapper.html.erb:89:in `call'
app/views/gems/files/show.html.erb:1:in `_app_views_gems_files_show_html_erb__150086518641140950_34440'
vendor/ruby-3.3.0/lib/ruby/3.3.0/benchmark.rb:313:in `realtime'

Request

Name Gems::FilesController#show
Method GET
URL https://gem.sh/gems/activerecord/v3.0.16/files/lib%252Factive_record%252Fmigration.rb
Browser ChromeChrome 147

Parameters

{
  "id": "lib%2Factive_record%2Fmigration.rb",
  "gem": "activerecord",
  "action": "show",
  "version": "3.0.16",
  "controller": "gems/files"
}

Headers

Via 2.0 heroku-router
Host gem.sh
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Pragma no-cache
Server Heroku
Version HTTP/1.1
Sec-Ch-Ua "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
X-Request-Id a9aeb9e6-3ff9-6b2f-1a55-425ee442f1d1
Cache-Control no-cache
Sec-Fetch-Dest document
Sec-Fetch-Mode navigate
Sec-Fetch-Site none
Sec-Fetch-User ?1
Accept-Encoding gzip
Accept-Language zh-CN,zh;q=0.9
X-Forwarded-For 47.82.15.99
X-Request-Start 1780713906521
Sec-Ch-Ua-Mobile ?0
X-Forwarded-Port 443
X-Forwarded-Proto https
Sec-Ch-Ua-Platform "macOS"
Upgrade-Insecure-Requests 1

Environment

os Linux 6.8.0-1055-aws
cwd /app
pid 15
host web.1
ruby ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
rails 7.1.3.4

Server

Load CPU RAM Swap Disk
web.1 Load avg 66% CPU 52% RAM 38% Swap 1% Disk 100%