.MD

Copy the markdown below:

ActiveRecord::RecordNotFound

app/controllers/categories_controller.rb:3

Couldn't find Category with 'id'="'"

Backtrace

app/controllers/categories_controller.rb:3:in 'CategoriesController#show'
lib/middleware/malicious_path_blocker.rb:45:in 'Middleware::MaliciousPathBlocker#call'

Request

Name CategoriesController#show
Method GET
URL https://whyruby.info/%27?utm_source=shortrubynews&utm_medium=referral&utm_campaign=short-ruby-newsletter-edition-149
Browser ChromeChrome 147

Parameters

{
  "id": "'",
  "action": "show",
  "controller": "categories",
  "utm_medium": "referral",
  "utm_source": "shortrubynews",
  "utm_campaign": "short-ruby-newsletter-edition-149"
}

Headers

Host whyruby.info
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
Priority u=0, i
Sec-Ch-Ua "Chromium";v="147", "Not_A Brand";v="24", "Google Chrome";v="147"
User-Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
X-Request-Id 66889fa2-2900-4b7e-8f83-83cf8d3095de
Sec-Fetch-Dest document
Sec-Fetch-Mode navigate
Sec-Fetch-Site none
Sec-Fetch-User ?1
X-Kamal-Target 53d4cf1bf76f:80
Accept-Encoding gzip, deflate, br, zstd
Accept-Language en-GB,en;q=0.9
X-Forwarded-For 193.233.247.141, 172.18.0.3
X-Request-Start t=1778515932657
X-Sendfile-Type X-Sendfile
Sec-Ch-Ua-Mobile ?0
X-Forwarded-Host whyruby.info
X-Forwarded-Port 443
X-Forwarded-Proto https
Sec-Ch-Ua-Platform "Linux"
Upgrade-Insecure-Requests 1

Context

controller
#<CategoriesController:0x00007e01f66501f0>

Environment

os Linux 6.8.0-106-generic
cwd /rails
pid 24
host whyruby.info-1a9c2d0bc983
ruby ruby 4.0.1 (2026-01-13 revision e04267a14b) +YJIT +PRISM [x86_64-linux]
rails 8.2.0.alpha
revision 52a23b1a3a2dc0c2ebc3e12cb7a33d0698be4084

Server

Load CPU RAM Swap Disk
whyruby.info-1a9c2d0bc983 Load avg 4% CPU 13% RAM 96% Swap 100% Disk 59%

Deployments 1

52a23b1a3a2dc0c2ebc3e12cb7a33d0698be4084 15 Apr 07:58