Using Ruby And Rails On Torch
Posted Mon, 15 May 2006 21:35:46 GMT to Posted in Geek
So….... I have noticed a few people have been searching the internet for ‘rails on torch’. So, I thought I would answer this question for them.
The Easy Answer:
It is already installed! Just start developing following any of the many, many tutorials out there. Or alternately you can just download, configure and run one of the many pre-existing projects in existance
The Slightly Less Easy Answer
Assuming you are doing development, you will soon likely run into a problem. Two of them actually.
- The current version of Rails is 1.0.0, meaning you are missing out on the latest and greatest features.
- You aren’t able to install, let alone update, gems. (And do we REALLY want to bother the admins every time we want to try a new, or update an old, gem?)
But there are a few options here:
- Download gems and use ‘gem unpack’ to unroll them into your application. Note, this is really tedious and lacks most of the advantages of using gems in the first place.
- Install your own instance of rubygems. The process is documented here. I use this on the server where I do most of my development.
- Even easier, just set up your environment to store the gems in your home directory. The process, which involves simply editing a file called .gemrc in your user directory is fairly well documented here. For those who just want a quick fix, you can use the below.
# simple .gemrc for usage on torch
gemhome: /users/cs/YOUR_USERNAME_HERE/gems
gempath:
- /usr/local/lib/ruby/gems/1.8