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

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,441 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!