Do you have several versions of ruby on your computer? If you download rvm, use rvm --defaultto install the standard ruby version, then check if you have all the necessary dependencies (like gems) associated with your ruby by default. If not, reinstall the rails and missing gems.
source
share