I have a form (Rails) and want to separate the submit into a separate DIV from the form fields:
.row
.span
= form_for [@household, @payment], do |h|
%fieldset
= h.label :lastname
= h.text_field :lastname
-# etc etc
.span
= h.submit "Submit"
Haml indentation rules say the "submit" tag has to be 2 spaces from the ".span". But this breaks the form, which expects it to be indented on the same level as the "%fieldset".
How can I make this form split itself over two DIVs?
<div class="span">
in your output? :/ – Phrogz