Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Maxim Kontsevitch
Maxim Kontsevitch
25,447 Points

Rails install and Uninstall

Hi, I'm having troubles with uninstalling rails 4.0.2. After I uninstall completely railties and rails. I type rails --version it shows me "Rails4.0.2" I've also installed an older version of rails. Can someone help me with this issue. (I'd like to see answers of installing older version of rails using rvm. )

3 Answers

Stone Preston
Stone Preston
42,016 Points

try passing in a version to uninstall rails 4.02 maybe?

gem uninstall rails -v 4.0.2
Maxim Kontsevitch
Maxim Kontsevitch
25,447 Points

Tanks, but still "Rails 4.0.2"

Stone Preston
Stone Preston
42,016 Points

since you have rvm maybe give

rvm remove rails-4.0.2

Maxim Kontsevitch
Maxim Kontsevitch
25,447 Points

Not working as well, the terminal output is still the same. Thank's anyway.

This sounds like a pretty common problem folks have when they install multiple different versions of something. With Rails, specifically, you need to designate a gemset to accompany the version of Rails you want to run. Check out this article on StackOverflow for the details. http://stackoverflow.com/questions/18348373/how-to-use-rvm-and-different-versions-of-rails