Funny method in Rails

Posted by Bryan Noll on September 4th, 2007 in Open Source

So, I'm chugging along, enjoying myself, writing some RoR code, and run across one of the funnier method names I've ever seen.  I had to make an effort to use it, so here it is… I'm using it in as many yml fixtures as I can.

 

created_at: <%= 1.fortnight.ago.to_s :db %>

 

Fortnight?  A fortnight?  Are there really enough webapps written that require time to be broken into chunks of fortnights to warrant a 'fortnight' method?  I honestly don't care, I just think it's funny that 'fortnight' made it into the Rails datetime extension library.

It reminds me of a quote from Abe Simpson.  

"The metric system is the tool of the devil! My car gets 40 rods to the hogshead and that's the way I likes it." 

 

Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
[Trackback URI]

Comments are closed.