%form#form1{:name => "form1", :id => "form1", :action => "response.rb", :method => "post"}
%fieldset
%label{:for => "name"} Name
%input{:name => "name", :size => "10", :type => "text", :value => "Fred"}%br/
%label{:for => "myRadios"} My Radios
%input{:checked => "", :name => "myRadios", :type => "radio", :value => "red"}Red
%input{:name => "myRadios", :type => "radio", :value => "green"}Green
%input{:name => "myRadios", :type => "radio", :value => "blue"}Blue
%input{:name => "myRadios", :type => "radio", :value => "yellow"}Yellow
%br/
%label{:for => "myBoxes"} My Boxes
%input{:checked => "", :name => "myBoxes", :type => "checkbox", :value => "Canada"}Canada
%input{:name => "myBoxes", :type => "checkbox", :value => "US"}US
%input{:checked => "", :name => "myBoxes", :type => "checkbox", :value => "UK"}UK
%input{:name => "myBoxes", :type => "checkbox", :value => "France"}France
%br/
%label{:for => "myCars"} My Cars
%select{:name => "myCars"}
%option{:value => "volvo"} Volvo
%option{:value => "saab"} Saab
%option{:value => "fiat"} Fiat
%option{:value => "audi"} Audi
%br/
%label{:for => "myTextarea"} My Textarea
%br/
%textarea{:cols => "60", :name => "myTextarea", :rows => "10"}Smart people drink real beer
%br/
%input#form1Submit{:name => "form1Submit", :id => "form1Submit", :type => "submit", :value => "GO"}
Renders:
<form action='response.rb' id='form1_form1' method='post' name='form1'>
<fieldset>
<label for='name'>Name</label>
<input name='name' size='10' type='text' value='Fred'>%br/</input>
<label for='myRadios'>My Radios</label>
<input checked='' name='myRadios' type='radio' value='red'>Red</input>
<input name='myRadios' type='radio' value='green'>Green</input>
<input name='myRadios' type='radio' value='blue'>Blue</input>
<input name='myRadios' type='radio' value='yellow'>Yellow</input>
<br>
<label for='myBoxes'>My Boxes</label>
<input checked='' name='myBoxes' type='checkbox' value='Canada'>Canada</input>
<input name='myBoxes' type='checkbox' value='US'>US</input>
<input checked='' name='myBoxes' type='checkbox' value='UK'>UK</input>
<input name='myBoxes' type='checkbox' value='France'>France</input>
<br>
<label for='myCars'>My Cars</label>
<select name='myCars'>
<option value='volvo'>Volvo</option>
<option value='saab'>Saab</option>
<option value='fiat'>Fiat</option>
<option value='audi'>Audi</option>
</select>
<br>
<label for='myTextarea'>My Textarea</label>
<br>
<textarea cols='60' name='myTextarea' rows='10'>Smart people drink real beer</textarea>
<br>
<input id='form1Submit_form1Submit' name='form1Submit' type='submit' value='GO'>
</fieldset>
</form>