rails/rails — pull request #7975 by butcher (2012-10-17 09:41:41+00:00)
Title: Extend date_select helper functionality.

This is clone of pull request https://github.com/rails/rails/pull/5553
During the rebasing from rails/master github close my previous pull request with very strange comment... so I just copy/paste explanation from the closed pull request.

Often we need to have date selectors with different styles. (Most often different width.) Unfortunately date_select helper don't provide possibility to set different CSS classes. This commit extend date_select helper with option :css_by_type that set special classes for generated 'select' tags. Class names equal data type, for example:
f.date_select :birthday, :css_by_type => true
generate:
```
...
...
```
Hope it will by helpfully.