Skip to content

Instantly share code, notes, and snippets.

@masterkain
Created September 3, 2008 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterkain/8583 to your computer and use it in GitHub Desktop.
Save masterkain/8583 to your computer and use it in GitHub Desktop.
module Administration::ReportsHelper
def add_reason_link(name)
link_to_function name do |page|
page.insert_html :bottom, :reasons, :partial => 'reason', :object => Reason.new
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment