Note, CAT() is only needed when you need to keep a group of HTML elements 
together inside an HTML helper object (e.g., for further manipulation) but 
don't want any surrounding HTML tags. Because you're putting the OPTION's 
inside a SELECT, there is no need for the CAT.

Anthony

On Monday, December 3, 2012 2:23:06 AM UTC-5, software.ted wrote:
>
> Hi, I have this unusual behavior of my code below, the options are 
> being duplicated what could be the problem: 
>
> #print SELECT(CAT([OPTION(s.name, _value=s.id) for s in 
> db(db.file_subject).select()])) 
>
> <select> 
>     <option value="<option value="1">Information 
> Technology</option><option value="2">Correspondance</option>"> 
>     <option value="1">Information Technology</option> 
>     <option value="2">Correspondance</option></option> 
> </select> 
>
> ...Teddy L. 
>

-- 



Reply via email to