Hallo,
I'm new with HAML, a so called newbie ;-)

I have a problem with HAML an SINATRA inside a form.
I want to use a select tag for display / selection of informations:

%tr
  %td
     %label{:for => "pmodule"} Start with PDMS module:
  %td
     %select{:name =>  "pmodule"}
       - for pm in @pm
         %option{:selected => @pr.pmodule_name, :include_blank =>
true} #{pm.name}

For Rails I've found informations like here (http://www.codeweblog.com/
rails-use-of-select/).

But for pure Ruby / Sinatra I've found nothing.

Can anybody help me ?

Thanks,
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to