Ruby on Rails - Error making new app (rb:55:in 'require') -


i've been following mike hartl's excellent ruby on rails tutorial`.

i had make decisions earlier versions gem files , ruby. decided (after problems getting heroku work i'd directly mimic tutorial , versions of ruby described - leading me go rvm use 2.0.0 set version of ruby.

all great on chapter 1 i'm getting error message when try create new rails project:

$ rails new demo_app 

/home/huw/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- rails/cli (loaderror) /home/huw/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /usr/bin/rails:9:in `'

i have no idea means... referencing ruby version i'm guessing rails , ruby versions out of sync...

could advise on possible courses of action?

i imagine possible options be:

  1. reset ruby version latest (but don't know clashes create gems!)
  2. downgrade rails 4.1 rails 4 (i believe that's mike hardl's version)
  3. force things through somehow

i'm complete rails noob however, , have no idea begin on of options - or if error code backs assumptions!

forgive "answer" don't have rep post mere comment :-(

have tried looking @ rvm site? has troubleshooting page may you.

if not, have tried get rvm stable , typing in rails new app_name command?

other useful rvm commands rvm list rubies , rvm gemset list. may case ruby version you're using doesn't have rails reason.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -