When trying to update OpenSSL - I broke (seemingly) everything surrounding Ruby and Rails on my laptop. Even after uninstalling ruby and rails through gem uninstall
gem uninstall
Try running bundle exec rails server instead of just rails server.
bundle exec rails server
rails server
I was seeing this error because I had a conflicting version of the rails gem installed globally.
rails
Prefixing commands with bundle exec ensures that you're using gems specified by your project's Gemfile.lock.
bundle exec
Gemfile.lock