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}} |
Related posts:
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
link_to_function Rails Ajax Reference
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}} |Related posts: