Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

How do I update rails from version 3.2.12 to 4.1

I want to follow along with the ODOT series but I need to update rails first. Tnx

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

In the terminal: gem install rails -v 4.1.4 - now you will have the latest Rails available for your applications

When creating the app for the first time, you can specify the version of Rails you want to use (it has to be installed using the method above): rails _4.1.4_ new odot

To make sure everything worked correctly, check if Rails 4.1.4 is specified in the Gemfile. Also, I suggest using RSpec version that Jason uses, not the newest (there are some differences and not all the Jason's code may work).

Thanks again Maciej! Looks like what you suggested worked! All your answers have been very helpful!