Skip to content

Instantly share code, notes, and snippets.

@umdstu
Created June 3, 2014 12:49
Show Gist options
  • Save umdstu/b4057ed3dfeecf7496e7 to your computer and use it in GitHub Desktop.
Save umdstu/b4057ed3dfeecf7496e7 to your computer and use it in GitHub Desktop.
def link_to_presenter(label,options)
url = link_to_content(label,options)
link_to label, url
end
2014-06-03 07:37:17 FATAL [work-mac] (69153:70237013883860) : [nil]
NoMethodError (undefined method `link_to' for #<ReportsController:0x007f2aef36ec0>):
app/helpers/application_helper.rb:213:in `link_to_presenter'
app/controllers/reports_controller.rb:249:in `block in query'
app/controllers/reports_controller.rb:244:in `each'
app/controllers/reports_controller.rb:244:in `query'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment