Created
May 5, 2011 21:40
-
-
Save brandon-beacher/958024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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