Tag Archives: rails 3

Building Custom XML Responses in Rails

Assume you have a CitiesController with just one action capital_city, which doesn’t need any of the RESTful actions. I set up a custom route for this one action. The capital_city action returns the xml like the following, for example: Here is what the entry in the routes.rb file looks like: Your controller may look something […]

Deploy to EC2 with Rubber on Rails 3

Rubber is a gem which makes it easy to make multi-instance deployments of your rails app to EC2. It uses capistrano to do this. Before proceeding, make sure you have your EC2 account created and have a keypair set up with Amazon. Here is recipe of what I’ve done so far. I’m running into issues […]

Installing, Configuring and Troubleshooting PostgreSQL 9.0 in Rails 3 on OS X

The following may apply to other versions of PostgreSQL as well but I’m using version 9.0. I initially tried to install PostgreSQL via MacPorts but after running into issues I describe below, I ended up installing it via the Mac OS X package. If you want to skip issues I ran into with my macports […]