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=...
Written by Sean Behan on 06/17/2012
Build Your Own Calendar in Rails without any Plugins in less than 10 lines of Ruby Code
There are a number of terrific calendar plugins for Rails. But it's almost as easy, if not easier, to implement your own calendar. The steps are pretty simple. First get the @beginning_of_month and @end_of_month and iterate over the days in between. In t...
Written by Sean Behan on 06/17/2012