Cant run rails commands. Your Ruby version is 2.2.1, but your Gemfile specified 2.1.4 -


i not able run surver rails s or cant make controllers etc. should ?

terminal showing following error:

your ruby version 2.2.1, gemfile specified 2.1.4 

run ruby -v see you've installed ruby 2.2.1, first line in gemfile specifies use ruby 2.1.4. change first line in gemfile specify ruby 2.2.1 or install ruby 2.1.4 if want use previous version ruby 2.1.4. first check if installed or not using rvm list command. if there need run rvm use ruby-2.1.4 command , if not there use

rvm install ruby-2.1.4  rvm use ruby-2.1.4 

Comments

Popular posts from this blog

php - How can an email be returned from Stripe Checkout? -

SQL php on different pages to Insert (mysqli) -

linked list - Get the index of the Node in a LinkedList which contains the given value in java -