Hi,
I really LIKE HAML, but I have one little request for the - form_for
html output
for example with this new.haml =>
-------------------------------------------------
- form_for :user, :url => users_path do |f|
%p
%label{:for => "user_name"} Name
= f.text_field :name
%p
= submit_tag 'New'
= link_to "back", users_path
--------------------------------------------------
I have this html output =>
--------------------------------------------------
<form action="/users" method="post"><p>
<label for='user_name'>Name</label>
<input id="user_name" name="user[name]" size="30" type="text" /
>
</p>
<p>
<input name="commit" type="submit" value="New" />
</p>
</form><a href="/users">back</a>
-----------------------------------------------------
but I would like to have this output
-----------------------------------------------------
<form action="/users" method="post">
<p>
<label for='user_name'>Name</label>
<input id="user_name" name="user[name]" size="30" type="text" /
>
</p>
<p>
<input name="commit" type="submit" value="New" />
</p>
</form>
<a href="/users">back</a>
------------------------------------------------------
This is nothing, I agree. But just like you, I like beautiful html
code :-)
Thank's for your help!
Thibaud Guillaume-Gentil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---