I am new to ruby. I’ve just installed Ruby and Rails on my fresh Ubuntu OS.
I created a new rails project based on the screencast from rubyonrail websites.
http://media.rubyonrails.org/video/rails_blog_2.mov
However, when executing ruby script/server, I am getting this error:
Missing the Rails gem. Please
gem, update your
install -v= rails
RAILS_GEM_VERSION setting in
config/environment.rb for the Rails
version you do have installed, or
comment out RAILS_GEM_VERSION to use
the latest version installed.
I followed the instruction, by commenting it out, but still getting the same error.
I am using Ruby v1.9.1, Rails v2.3.8
h@ubuntu:~/ruby/code/blog$ which ruby
/usr/local/bin/ruby
h@ubuntu:~/ruby/code/blog$ which gem
/usr/local/bin/gem
h@ubuntu:~/ruby/code/blog$ which rails
/usr/bin/rails
Please advice..
Thanks..
have you tried to edit
look for RAILS_GEM_VERSION and change the version according to the one you installed. so in this case it will be: