[Nitro] Select default value.

Arne Brasseur arne at arnebrasseur.net
Fri Sep 7 00:00:55 EDT 2007


Aureliano Calvo schreef:
>> request["gender"] == nil
>>
>> and not
>>
>> request["gender"] == "??" # <-- the special value
>>     
>
> How about?
>
> <form>
> <select name="gender">
>  <option value="">--- No selection</option>
>  <option value="1">Male</option>
>  <option value="2">Femal</option>
> </select>
>
>   
I find this quite natural.
> and request["gender"] == ""
>   
Georges suggestion was that Nitro would treat this case special :

  request["gender"] == nil

I like this, any objections?

(ab)

-- 
Arne Brasseur
http://www.arnebrasseur.net
arne at arnebrasseur.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070907/2fb07e3d/attachment.html 


More information about the Nitro-general mailing list