Skip to content

Instantly share code, notes, and snippets.

@mrb
Created November 12, 2008 16:56
Show Gist options
  • Save mrb/24205 to your computer and use it in GitHub Desktop.
Save mrb/24205 to your computer and use it in GitHub Desktop.
def add_subagent_link(name, div)
link_to_function name do |page|
page.insert_html :top, div.to_sym, :partial => 'subagent', :object => CompanyCompany.new
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment