Option Select type in Foms using Ruby on Rails

I am created a form in Rails and would like to include a option select type. I can’t get the xml file to render the options properly. Here is the xml file. The other controls work.

xml.instruct!
xml.tag!(“form”) do
xml.tag!(“items”) do
xml.tag!(“item”, :name => “authenticity_token”,
:id => “authenticity_token”,
:type => “hidden”,
:value => form_authenticity_token)
xml.tag!(“item”, :type => “label”,
:label => “Enter Attendance Data”)

xml.tag!(“item”, :type => “select”,
:label => “Club Names”,
:name => “attendance[club.name]”,
:id => “attendance[club.id]”,
:astonished:ptions => {:text => “1”, :value => “128”} )

xml.tag!(“item”, :type => “button”,
:name => “commit”,
:value => “Save”,
:command => attendances_path,
:id => “member_session_submit”)
end
end

dhtmlxForm is fully client side component. We do not have support for your custom code on Ruby on Rails

Don’t understand your comment. No custom custom code here. Just trying to make a form using a option select control.
Regardless, I have figured it out. The correct syntax for a select control is:

xml.tag!(“item”, :type => “select”,
:label => “Meeting Month”,
:name => “attendance[meeting_month]”,
:value => “”,
:id => “attendance[meeting_month]”) do
xml.tag!(“option”, :text => “Select Month”, :value => “” )
xml.tag!(“option”, :text => “January”, :value => 1 )
xml.tag!(“option”, :text => “February”, :value => 2 )
xml.tag!(“option”, :text => “March”, :value => 3 )
xml.tag!(“option”, :text => “April”, :value => 4 )
xml.tag!(“option”, :text => “May”, :value => 5 )
xml.tag!(“option”, :text => “June”, :value => 6 )
xml.tag!(“option”, :text => “July”, :value => 7 )
xml.tag!(“option”, :text => “August”, :value => 8 )
xml.tag!(“option”, :text => “September”, :value => 9 )
xml.tag!(“option”, :text => “October”, :value => 10 )
xml.tag!(“option”, :text => “November”, :value => 11 )
xml.tag!(“option”, :text => “December”, :value => 12 )
end