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...
Asked
Active
Viewed 101 times
1
-
At the very least we probably need the particular Railscast you're referencing. In all likelyhood either 1.8.7 or 1.9.3 would work fine. – Iamvery Aug 16 '12 at 19:30
-
http://railscasts.com/episodes/257-request-specs-and-capybara – Lieven Cardoen Aug 17 '12 at 06:51
3 Answers
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
-
The gemfile points to the rails version, but I'm talking about the ruby version... – Lieven Cardoen Aug 17 '12 at 06:51
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