I understand that Rails is a gem. Which means when I run
gem list
the terminal should echo the name rails for me.
My problem is that I can run
rails --version
but when it comes to gem list I only receive *LOCAL GAME LIST* without any text following.
What could be wrong? Is it my understanding?
Thank you and best regards
Check Your Path and/or Package Manager
If you have Rails installed through your package manager, rather than as a gem, then your local gem list will be empty. If you are running Debian or Ubuntu,
dpkg -l railswill show you whether it’s installed as a system package instead.You can also find which binary you’re invoking with
which railson the command line. If you did a source install, that may tell you where in your PATH the Rails application is located.