Upgraded to Rails 5 Development Mode Gives Production Error Page

I recently tried to upgrade a rails 4.2 app to Rails 5, but had a weird problem where whenever I ran bin/rails s and tried to make a request, the page would show the default “Something went wrong” and the development.log just showed that I accessed the page and nothing else. any ideas on how to debug what’s wrong?

I would expect to see failing tests -- how good is your test coverage?

And if the answer is "uh, well..." then go back to the 4.2 version and
write some, at least for the area that you're seeing issues with :slight_smile:

Hi Hassan,

Test coverage is quite low as its just pulling data from an API source. I’ll fix up the test coverage in a bit. Since the development logs don’t say much you think I can find the answer in the test environment?

Thanks,
Allen

I recently tried to upgrade a rails 4.2 app to Rails 5, but had a weird
problem where whenever I ran bin/rails s and tried to make a request, the
page would show the default "Something went wrong" and the development.log
just showed that I accessed the page and nothing else. any ideas on how to
debug what's wrong?

Literally nothing else?

Can you post that bit of the log? Also the the o/p from the terminal
window running the server, from server startup to the request.

Colin

Colin

Having full test coverage of that area will, at the very least, speed
up the process of elimination :slight_smile:

Well ain’t that a B… just tried to update again, and this time it seems to be working? hmm… Next time I’ll try to put everything down for you guys in a gist. It was like 4am at that time, so wasn’t thinking clearly. That also may have been the problem. :slight_smile: