My First Rails Patch

January 14th, 2008 by Radar

Today I wrote my first Rails patch: http://dev.rubyonrails.org/ticket/10799

I was infuriated at this method over the weekend when I found out that it didn’t use the current year, but instead always guessed Feb. to be 28 days regardless of the current year. My patch uses the current year.

+1 it if you think it’s a good idea.

This patch is now verified! This means that it will be more than likely to be included inside of Rails 2.1, whenever that’s released! Thanks to DevF and nzkoz from #rails-contrib on freenode for suggesting that I write tests as well as telling me a cool few tricks.

This patch is now in Rails! http://dev.rubyonrails.org/changeset/8715

Tags: ,

2 Responses to “My First Rails Patch”

  1. Vaqas Says:

    Hi, I noticed you helping a lot on rails forum. Could you please leave your Gtalk/MSN…I am new to rails and I would need your help. Thanks.

  2. Radar Says:

    Sure, my GTalk is radarlistener and my MSN is radarlistener@gmail.com

Leave a Reply