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
Maxim Kontsevitch
25,447 PointsNeed to install rails Version 3.2.6
How can I install ruby on rails Version 3.2.6(The number of version is very important) Thank in advance!
2 Answers
Patrick Cooney
12,216 PointsJust add -v 3.2.6 to the end of your rails install command.
Brandon Barrette
20,485 PointsOr in your gem file, add that next to gem rails. I believe you have to specify in gem file in the event that you have multiple versions of rails installed on your computer.
Patrick Cooney
12,216 PointsIf you have multiple versions of rails installed you should be using separate gemsets in rvm. If you are then when you are on a given gemset, for all intents an purposes, the gems installed in other gemsets don't exist to the rest of the OS so you shouldn't need to specify version. However if you are doing things wrong or you want to make sure that when the project goes to another computer they get the same version of rails it's a good idea to add it in the gemfile. If adding to gemfile don't forget to bundle install.