Error :
ganesh$ rails s
Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
Solution :
If you type rvm list and it shows a 2.0 version of ruby as your current version and you are still getting this error,typing rvm use (ruby version) fixed this issue
1. ganesh$ rvm list
rvm rubies
=* ruby-1.9.3-p429 [ x86_64 ]
ruby-2.0.0-p247 [ x86_64 ]
ruby-2.1.0 [ x86_64 ]
# => – current
# =* – current && default
# * – default
2. ganesh$ rvm use ruby-2.0.0-p247
Using /Users/ganesh/.rvm/gems/ruby-2.0.0-p247
3. ganesh$ rails s
ganesh$ rails s
Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
Solution :
If you type rvm list and it shows a 2.0 version of ruby as your current version and you are still getting this error,typing rvm use (ruby version) fixed this issue
1. ganesh$ rvm list
rvm rubies
=* ruby-1.9.3-p429 [ x86_64 ]
ruby-2.0.0-p247 [ x86_64 ]
ruby-2.1.0 [ x86_64 ]
# => – current
# =* – current && default
# * – default
2. ganesh$ rvm use ruby-2.0.0-p247
Using /Users/ganesh/.rvm/gems/ruby-2.0.0-p247
3. ganesh$ rails s
It was really a nice article and i was really impressed by reading this Ruby on Rails Online Course Hyderabad
ReplyDelete