Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created May 5, 2011 21:40
Show Gist options
  • Save brandon-beacher/958024 to your computer and use it in GitHub Desktop.
Save brandon-beacher/958024 to your computer and use it in GitHub Desktop.
module ApplicationHelper
def link_to_pivotal(link_text, story_number, attributes = {}, &block)
default_attributes = {
:confirm => "Not yet implemented. Click OK to view Pivotal story or Cancel to stay on this page." }
link_to(
link_text,
"https://www.pivotaltracker.com/story/show/#{story_number}",
default_attributes.merge(attributes),
&block )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment