select_month Fix for gettextlocalize on Rails 2.1

When using a simple f.date_select, i got a nice “wrong number of arguments (3 for 2)”, turns out the problem lies with gettext localize, which overwrites select_month, but seems to break in rails 2.1.

To fix monkeypatch it:

#vendor/plugins/gettext_localize/lib/gettext_localize_extend.rb @line 172
  def select_month(date, options = {},html_options={})

Now it should do your bidding again 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s