Friday, July 28, 2006

Sophie has gone to the dark side


Weirdos!
Originally uploaded by Paul Milner.
Judging by her latest drawings....

Labels:

Wednesday, July 26, 2006

Ruby On Rails and Gem installing

I'm only just getting into Ruby On Rails so this is just some notes on things that cause me problems!

I've had trouble updating Rails to 1.1.4 - it looks like this is because I am behind a firewall here at work. I'm on WinXP.
When I do "gem install --http-proxy {proxyURL} -v 1.1.4 rails" it would appear to start OK but then bail out.
I didn't find out why... but anyway I moved on to try downloading the packages and installing them from local repository. It wasn't obvious how to do this: maybe there is documentation for it but I haven't found it.
Finally figured out the following. To upgrade Rails to 1.1.4 locally:

Get the gems and zips for the following packages from RubyForge, and put them in c:\ruby (in my case)
(I assume you need both the zip and the gem):

rails-1.1.4
activesupport-1.3.1
activerecord-1.14.3
actionpack-1.12.3 (I could only find 1.12.1 listed on RubyForge, but I did find it via Google!)
actionmailer-1.2.3
actionwebservice-1.1.4 (again couldn't find it direct but via Google OK)

Install all these in the right order by running "gem install -l -v .
It will complain if you don't do the dependencies in the right order...

Lastly install rails via "gem install -v 1.1.4 rails"
Hopefully this time it will install OK and then you are sorted...

Labels: