rod mclaughlinMoving to Rails 3.1 (05 aug 11)
Rails 3.1 release candidate 5 is the latest Here's how do a simple app using RVM on Linux Ubuntu 10 64 bit: $ rvm install 1.9.2-p0 See also http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate http://beginrescueend.com/rvm/ One of the problems with Ruby on Rails is it develops so fast its developers don't have time to write documentation. If you think my post (above) is obscure, how about this explanation of 'Sprockets', which is apparently an important part of Rails 3.1, given by its author: "Sprockets 2 is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS" https://github.com/sstephenson/sprockets This is a bit better: http://www.xydo.com/toolbar/18039833-using_sprocket_2_in_rails_with_coffeescript_and_sass Aug 30 - Rails 3.1 has been released. So I changed the Gemfile to say gem 'rails', '>=3.1.0' instead of gem 'rails', '>=3.1.0.rc1' ran 'bundle install' to install Rails 3.1 then 'rails server' and it no longer worked. It said 'autodetect': Could not find a JavaScript runtime. This is an issue I had when Rails 3.1 was beta: http://rubyjunction.com/moving-to-rails-3-1-beta So I tried adding gem 'therubyracer'
to the Gemfile and ran 'bundle install' again That was an inspired guess, as it transpired 'rails server' now runs a Rails server, like its supposed to For the interested, here is the Gemfile: source 'http://rubygems.org'
Back
|