> This doesn't, but I'd prefer to do it like this if possible:
>
> %a.button{ :href => page_path(page), :method => :delete, :confirm =>
> "Are you sure?" } delete
>
>   
:method => :delete is something specific to Rails that adds some onclick 
stuff to the link.  Basically it creates an invisible form, adds the 
method field and submits the form.


> One more thing: it seems Haml doesn't like attribute hashes to span
> multiple lines. This is okay in most cases but some lines can get a
> bit long. Is there a way to do this?
>
>   
Best to put those long hashes in a helper!  Haml encourages succinct code.

Sean


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