Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Rails Application

Loi Tran
Loi Tran
9,053 Points

I have rails version 4.2.5

Can I still follow along and Generate the Odot project using Ruby on Rails?

1 Answer

Seth Reece
Seth Reece
32,864 Points

Hi Loi,

You should be fine. I would lock in the specified version of other gems Jason uses though. For example he uses rspec 2.x, and there is a few big changes in rspec 3.x.

Loi Tran
Loi Tran
9,053 Points

Thanks for responding Seth! How would I lock it Seth? In the Gemfile? It's difficult to follow along with him because when he runs the test's I always get fails from rspec. The application still does what I command it to do, for example require description field and requires a title, but its annoying as heck seeing that all my tests fail... lol =)

Anyway, Just open up the gemfile and then require only version 2.x of rspec, correct?

Seth Reece
Seth Reece
32,864 Points

Yes, you would lock it in your gemfile. For example

gem 'rspec-rails', '~> 2.0'

Seth Reece so i can type in gem 'rspec-rails', '~> 2.0' just about anywhere in the gem file and it will work?