1

I'm trying to get a railscasts working but apparently things have changed a lot in the last year... So how can you now against which version of ruby the railscast was done? The gemfile contains all versions of gems, but not the version of ruby to use. And no, it isn't all that backward compatible...

Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244

3 Answers3

1

Rails 3.0+ works best with ruby 1.9. So, it's better to use 1.9.3.

rb512
  • 6,880
  • 3
  • 36
  • 55
1

It is easier to tell by looking at the coding used in the rails cast. If it tells you about asset pipeline then its Rails 3.1+. If it does not use pipeline but calls rails s then its 3.0. If it uses script/server then its 2.. version

lifejuggler
  • 460
  • 6
  • 17
1

Ruby v1.9.2 was used for the ASCIIcast. In all likelihood Ryan Bates also used a Ruby v1.9.x for his Railscast.

/Users/eifion/.rvm/rubies/ruby-1.9.2-p0/bin/ruby

Can be seen in the ASCIIcast at http://railscasts.com/episodes/257-request-specs-and-capybara?view=asciicast in any of the terminal outputs.

Nothing in the Rails cast indicates that it would not also work with 1.8.7 to me.

Iamvery
  • 274
  • 2
  • 11