I'm seeing odd behavior with form_tag. It is generating 2 forms in the
output.

=form_tag '/test' do
  =label_tag 'field'
  =text_field_tag 'field'

generates this output

<form action="/test" method="post"><div style="margin:0;padding:
0"><input name="authenticity_token" type="hidden"
value="f15c0ee2e03b44df87cb6135e7146a20b629de10" /></div>
  <label for="field">Field</label>
  <input id="field" name="field" type="text" />
</form>
<form action="/test" method="post"><div style="margin:0;padding:
0"><input name="authenticity_token" type="hidden"
value="f15c0ee2e03b44df87cb6135e7146a20b629de10" /></div>
  <label for="field">Field</label>
  <input id="field" name="field" type="text" />
</form>

Rails 2.1.1
Haml 2.1.0

Has anybody else seen this?

--~--~---------~--~----~------------~-------~--~----~
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