February 22, 2011 at 5:28 pm · Filed under Ruby on Rails
I wanted to parse an Excel spreadsheet stored on Amazon S3 (AWS::S3) using the Spreadsheet gem.
I spent a lot of time trying to get this to work and was not able to find a good example anywhere on the internet so here is the code snippet:

Permalink
November 5, 2010 at 2:20 pm · Filed under Ruby on Rails
I was working on converting a simple content site to Rails and I needed to maintain the existing search engine friendly URLs so the site does not loose its ranking.
The URL format I needed was /section-name/page-name
I looked into Route Globbing (a way to specify that a particular parameter should be matched to all the remaining parts of a route) but I went with the ‘No controller names’ technique suggested in this excellent post by August Lilleaas. This was the simplest and the easiest solution to implement for my app.
Permalink