Monthly Archives: May 2007

ActiveRecord Without Rails

Some of you must be wondering, I must be insane to use ActiveRecord outside of Rails. But there are some very compelling reasons.

ActiveRecord is an awesome library for Object Relational Mapping (ORM).
Other projects might not involve the use of Rails.
You want to experiment with ActiveRecord prior to creating a plugin for your Rails [...]

Posted in ActiveRecord, ActiveRecord Without Rails | 13 Comments

Deploying Ruby on Rails on Ubuntu Feisty Fawn via Mongrel Cluster and Apache

Note:

A quick, down and dirty solution. There are more verbose resources on how to setup Mongrel Cluster and Apache. But this is also specifically tailored for Ubuntu Feisty Fawn.
After installing mongrel, when executing ./script/server, you will not use Webrick anymore, but instead mongrel for development. You can still use Webrick if you want, [...]

Posted in Apache, Guides, Mongrel, Mongrel Cluster, Rails Deployment, Ubuntu Feisty Fawn | 19 Comments

Connecting To MySQL using Ruby

So this time we will take a break off Rails, and go straight into the actually using Ruby alone. No abstraction.
Ruby has a simple abstraction layer (Ruby DBI), but lets skip that for now. We don’t want abstraction.
Installing MySQL
Well first you need MySQL installed. I have written a guide on how to [...]

Posted in MySQL, Ruby | 2 Comments