Rails date miscalculation 1

Posted by Matt on November 14, 2008

This happens all the time in my console. It’s super annoying as it throws off basically everything. Ugh.

date

Update:
Futher bitching. This is rendered HTML for a weekly timesheet. All it needs to do is print out a table row containing links to that particular day:

Update: Turns out that the error was being caused by a library (facets/times) that I included elsewhere in my app. Everytime that piece of code was called, the whole shebang crapped out. Removed the library and all is well with the world. Credit goes to Frederick Cheung for getting me on track via the Rails mailing list!

The Beauty of Ruby #32498 3

Posted by Matt on November 09, 2008

Ever want to find a random ActiveRecord object? Seems simple, but there isn’t really an easy way to do it (well, a really easy way). This little snippet really shows the elegance of Ruby and I thought I’d share:

A New Dawn

Posted by Matt on November 05, 2008

Thank you, and God speed.
Barack Obama Teens 1