Entries from June 2008

Tuesday, June 24th, 2008

Organize Nested Resource Controllers More Efficiently in Rails

Nested resources are awesome. If you want to have a blog with entries that have comments, the resources are dead simple:

map.resources :entries do |entry| entry.resources :comments end

Awesome, now you have set up paths like entries/3/ and entries/3/comments/ using an EntriesController and a CommentsController. What if, however, you want to have a base comments [...]

Tuesday, June 17th, 2008

Firefox 3 and Firebug

Problem: Firefox 3 (which was released today) does not work with Firebug. Firebug’s website is down.

Solution: I found a developer build of Firebug here that seems to work pretty well. Hopefully the actual developers of Firebug can get their site up soon, but in the meantime, this seems to be working pretty well.

So [...]

Saturday, June 14th, 2008

Follow Euro 2008 on Twitter

After my friend Paul asked me to text him updates from a Euro 2008 game while he was at work, I came up with the idea to set up a twitter bot that posted updates from Soccernet’s gamecasts. After a couple hours of work, using Hpricot and the Twitter gem, I was able to [...]

Wednesday, June 11th, 2008

The Mysterious Save For Web Color Shift

Finally, the mysterious “Save For Web” color shift in Photoshop is solved. Awesome!

Saturday, June 7th, 2008

Advanced Rails Recipes

A couple weeks ago, I received my copy of Advanced Rails Recipes by Mike Clark (and others), and so far, I’ve really been enjoying it. The first book by Chad Fowler was easily my favorite Rails book at the time, and the new edition has definitely continued the trend. I’ve always learned best [...]