Mark Robinson
Mark Robinson

Reputation: 1619

How to specify less than version in Gem Bundler

I'm trying to specify factory_girl_rails version less than 3.0 as I don't have ruby 1.9 installed and 3.0 isn't compatible with 1.8.x. I've tried a few ways round but it always tries to install 3.0.0 and fails on the ruby dependency.

Upvotes: 0

Views: 1412

Answers (1)

Adam
Adam

Reputation: 3158

According to this, Rails 3.0 should still be compatible with Ruby 1.8.7 (they aren't dropping Ruby 1.8 support until 4.0).

But, if you put this in your Gemfile, bundler should use the latest 2.3 version (the last minor version before 3.0) of Rails:

gem 'rails', '~>2.3'

Upvotes: 3

Related Questions