Written by Sean Behan on Sun Jun 17th 2012

Link_to_function syntax for Haml template. Notice the "|" pipe which will allow for new lines in your code.

= link_to_function( "Add Line Item") |
  {|page| page.insert_html :bottom, :invoice_line_items, |
  :partial => "line_item", :locals=>{:line_item=>LineItem.new}} |

Tagged with..
#haml #link_to_function #Ruby on Rails

Just finishing up brewing up some fresh ground comments...