[Nitro] [PATCH] xhtml helper

Michael Fellinger m.fellinger at gmail.com
Thu Apr 27 00:15:53 EDT 2006


to be honest, i don't use the select-helper but wrote my own because
you can't just have strings as values, or URLs with a javascript that
redirects you :)

have a look here...

On 4/27/06, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> That's all right, I'll take care of it.
>
> Thanks.
>
> On 4/26/06, Dimitri Aivaliotis <aglarond at gmail.com> wrote:
> > just a small change to the xhtml helper, to make sure that the
> > comparison is done correctly.
> >
> > Note: no actual patch is included because it is a trivial change.
> >
> > http://devlab.oree.ch/trac/nitrohq/ticket/34:
> >
> > line 54 of lib/nitro/helper/xhtml.rb (version 0.29.0)
> >
> > line 78 of lib/nitro/helper/xhtml.rb (current repo)
> >
> >                 if value == selected
> >
> > should be
> >
> >                 if value.to_i == selected
> >
> > because 'selected' has .to_i done to it earlier.
> >
> >
> > Let me know if I should make an actual patch for this, and I'll send
> > it later today.
> >
> > - Dimitri
> >
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> >
>
>
> --
> "Never tell people how to do things. Tell them what to do and they
> will surprise you with their ingenuity." —General George S. Patton
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form_select.rb.tar.gz
Type: application/x-gzip
Size: 696 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060427/7d4f53b2/attachment.gz 


More information about the Nitro-general mailing list