Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
410 views
in Technique[技术] by (71.8m points)

Why am I getting an ArgumentError on ActiveRecord find methods after upgrading to Ruby 3, but only on Heroku?

After upgrading to Ruby 3.0.0 on my local machine, I can go to the console and enter:

User.find(1)

and it returns a user

After pushing to heroku, if I do the same thing, I instead get:

ArgumentError (wrong number of arguments (given 3, expected 1..2))

Anyone got any idea what could be happening differently to cause this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Huh, turns out it was the gem for Scout, removed that and the error goes away!

https://github.com/scoutapp/scout_apm_ruby


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...