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

Tagged w/ #haml #link_to_functionruby on rails

Apps I've Built

PhotoLocationChanger
Easily change the location on your photos and videos
Click here for more info about the app
PhotoDateChanger
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app