Home > Announcements > For Assignment 0: Rails 2.3.3 only

For Assignment 0: Rails 2.3.3 only

September 4th, 2009 john Leave a comment Go to comments

Annoyingly, the newest version of Rails, 2.3.4, has a bug that we might as well avoid.

So, we shall stick to 2.3.3 only, until this is cleared up.

To check your version number, do

gem list

You should a display something like this (with versions 2.3.3 or 2.3.4):


*** LOCAL GEMS ***

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
eventmachine (0.12.8)
fastthread (1.0.7)
gem_plugin (0.2.3)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7)
sqlite3-ruby (1.2.5)
thin (1.2.2)

If at this point you the 2.3.4 versions of rails, actionmailer, actionpack, activerecord, activeresource, and activesupport, do

gem uninstall rails actionmailer actionpack activerecord activeresource activesupport

If you are asked “which versions,” select “all of them.”

Then to install Rails at version 2.3.3, specify the version number, and gem install sqlite3-ruby separately:

gem install rails -v 2.3.3
gem install sqlite3-ruby

Sorry about this. Rails 2.3.4 introduces an issue when using Ruby 1.9.1 (see https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3144-undefined-method-for-string-ror-234). For our pedagogical purposes, 2.3.3 will be fine, and it is likely that there will soon be a 2.3.5 that has the updates for 2.3.4 and has a fix for this recently-introduced bug.

John

Categories: Announcements Tags:
  1. No comments yet.
  1. No trackbacks yet.