[Nitro] bugfix

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Tue Nov 1 03:58:06 EST 2005

In xhtml.rb function date_select please change the line 93 from:

#{options(:labels => Date::MONTHNAMES, :values => (1..12).to_a, 
:selected => (date.month))}


#{options(:labels => Date::MONTHNAMES.compact, :values => (1..12).to_a, 
:selected => (date.month))}

unfortunately Date::MONTHNAMES adds a nil element at the beginning of the 
array that spoils up the numbering of the months. compact fixes that ;-)

Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
  To teach is Primal, to Rule is Sin}

More information about the Nitro-general mailing list