Erik A. Hanson's Weblog

Archive for the 'Ruby on Rails' Category

A Rake Task to Concatenate and Compress Javascript Files

Posted: Sunday, March 2nd, 2008    Tags: Javascript, Ruby on Rails, Web development, wshlst.com

A while ago, I wrote about a Ruby script to concatenate and compress Javascript files for my wshlst application. I’ve changed things around a bit since that article, so I thought it was time for an update.
Background
wshlst uses a lot of Javascript. When developing, I want to have all of my JS files listed in [...]

My time zone solution: RelativeDate.js and ServerTime.js

Posted: Wednesday, October 31st, 2007    Tags: Javascript, My Software, Ruby on Rails, Web development, wshlst.com

For my wshlst.com project, I needed to show when each item or comment was created or edited. My initial implementation was to just show the time and date of the change, but people who aren’t in the same time zone as my server didn’t like the fact that it showed a different time zone.
I contemplated [...]

Installing termios gem on Mac OS X

Posted: Saturday, February 3rd, 2007    Tags: Mac OS X, Ruby on Rails, Web development

When installing Capistrano, you should install the termios gem so that your password isn’t echoed when you type it. Easier said than done.

Join Tables with Attributes in Rails

Posted: Sunday, February 12th, 2006    Tags: Howto, Ruby on Rails

I had a little trouble today with join tables that contain attributes.

Writing a Ruby Test Suite that RDT and Test::Unit Can Understand

Posted: Tuesday, September 20th, 2005    Tags: Howto, Ruby on Rails

I’m working on a Ruby project using Eclipse and RDT. RDT provides a couple useful features, including support for running unit tests with Test::Unit. Unfortunately, it’s pretty primitive at the moment. One big problem is that it can’t run all your tests. So we wrote a test suite class that runs all tests and can be run from Test::Unit:.

Installing Ruby on Rails on Mac OS X 10.4 (Tiger)

Posted: Wednesday, September 7th, 2005    Tags: Howto, Ruby on Rails

I had a hell of a time getting Ruby on Rails to work on Mac OS X 10.4 (Tiger). Here’s what ended up working for me.