I m new to rails. I have funny things when trying to change version of
rails.
I have installed ruby 1.6.5.1 and ruby 1.9.3. I installed RVM and
everything correctly.
When i change ruby version with rvm use 1.9.3 it succesfully change
ruby, when type
ruby -v it shows 1.9.3 .
But then I try to install rails 3 with rvm gem install rails, it shows
rails 3.2.6 is sucesfully installed but when I type rails -v it shows
2.8.6 again.
When i type gem rails list it shows that 2.8.6 and 3.2.6 are installed,
but how can I make terminal
shows 3.2.6 when I run rails -v command?
Also how can I use jruby 1.6.5.1 as ruby 1.9?
And how to create sucesfully new project specifzing version for example>
But then I try to install rails 3 with rvm gem install rails, it shows
rails 3.2.6 is sucesfully installed but when I type rails -v it shows
2.8.6 again.
When i type gem rails list it shows that 2.8.6 and 3.2.6 are installed,
but how can I make terminal shows 3.2.6 when I run rails -v command?
If you're using rvm, you should create separate gemsets for Rails 2 and 3.
(And "2.8.6" isn't a version of Rails I've ever encountered...)
Also how can I use jruby 1.6.5.1 as ruby 1.9?
jruby --1.9 # see also: jruby --help
And how to create sucesfully new project specifzing version for example>
RVM was installed with sudo by my administrator and then it was problem
because ordinary user
doesnt have permision to pull gems. So chief of administrators
reinstalled RVM and everything works fine.