I just created a ruby on rails project and I'm trying to generate a model with the command rails generate model Car
and I'm getting this error:
~/Code/CarInfo (master) $ rails generate controller Test
rbenv: version `ruby-2.3.7' is not installed
I tried updating and reinstalling rbenv with homebrew but it still doesn't work and I'm still getting the same error.
When I type ruby -v in the cli I am getting the same error as shown above.