tobyaw: (Default)
posted by [personal profile] tobyaw at 07:18pm on 17/11/2012 under , ,
I’ve been programming with Ruby on Rails for some years now; I find Ruby a remarkably satisfying language to programme, and Rails is a productive toolkit which I use primarily for developing internal web apps for various purposes at work.

Up until now I’ve stuck with Rails 2; I have a handful of project that have a fair amount of code, and there hasn’t been a requirement that has merited the work that would go into updating my code to work with Rails 3. But now I’ve started work on a new web app, and it is a decent opportunity to start afresh, take account of what I’ve learned from the previous versions of Rails, and being a project using Rails 3.2.

I spent some time today reading the latest edition of Agile Web Development with Rails; I originally learned Rails with a much earlier edition of this book, so I thought it would be a good starting point for seeing where the current best practices are.

Now, while Kate is downstairs watching Strictly Come Dancing, I’m configuring a server with Phusion Passenger, which appears to be a very straightforward experience. For my previous apps in Rails I’ve tended to use Apache as a load balancer in front of a bunch of Thin web server processes.

It’s rather fun working with a newer version of a development framework; the bulk of it is familiar, but lots of changes, most of which make sense.
location: St Andrews, Scotland
tobyaw: (Default)
Install the Sun developer tools, and install curl. Then to install ruby:
$ curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
$ gunzip ruby-1.8.6.tar.gz
$ tar -xf ruby-1.8.6.tar
$ cd ruby-1.8.6
$ ./configure --without-gcc
$ make
$ su
# PATH=$PATH:/usr/ccs/bin
# export PATH
# make install
# make install-doc


To install gem:
$ curl -O http://rubyforge.rubyuser.de/rubygems/rubygems-0.9.4.tgz
$ gunzip rubygems-0.9.4.tgz
$ tar -xf rubygems-0.9.4.tar
$ cd rubygems-0.9.4
$ su
# PATH=$PATH:/usr/local/bin
# export PATH
# ruby setup.rb


Then to install rails, mongrel etc.:
# gem install rails
# gem install mongrel


(If a gem complains about being unable to build a native extension, try doing PATH=$PATH:/usr/local/bin; export PATH first.)
location: KY16 8JY
tobyaw: (Default)
Install the Sun developer tools, and install curl. Then to install ruby:
$ curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
$ gunzip ruby-1.8.6.tar.gz
$ tar -xf ruby-1.8.6.tar
$ cd ruby-1.8.6
$ ./configure --without-gcc
$ make
$ su
# PATH=$PATH:/usr/ccs/bin
# export PATH
# make install
# make install-doc


To install gem:
$ curl -O http://rubyforge.rubyuser.de/rubygems/rubygems-0.9.4.tgz
$ gunzip rubygems-0.9.4.tgz
$ tar -xf rubygems-0.9.4.tar
$ cd rubygems-0.9.4
$ su
# PATH=$PATH:/usr/local/bin
# export PATH
# ruby setup.rb


Then to install rails, mongrel etc.:
# gem install rails
# gem install mongrel


(If a gem complains about being unable to build a native extension, try doing PATH=$PATH:/usr/local/bin; export PATH first.)
location: KY16 8JY

Links

July

SunMonTueWedThuFriSat
        1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9 10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31