Permalink
Browse files

Controller info for older Rails-es is different.

  • Loading branch information...
1 parent fe43005 commit 5ea4ac3b53e12139893b0709829d3a43d7cd1de9 @jyurek jyurek committed Nov 19, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/templates/javascript_notifier.erb
@@ -10,8 +10,8 @@ document.write(unescape("%3Cscript src='" + notifierJsScheme + "<%= host %>/java
Hoptoad.setHost('<%= host %>');
Hoptoad.setEnvironment('<%= environment %>');
Hoptoad.setErrorDefaults({
- url: "<%= request.url %>",
- component: "<%= controller_name %>",
- action: "<%= action_name %>"
+ url: "<%= a = "#{controller.request.protocol}#{controller.request.host_with_port}#{controller.request.request_uri}"; p a; a %>",
+ component: "<%= controller.controller_name %>",
+ action: "<%= controller.action_name %>"
});
</script>

0 comments on commit 5ea4ac3

Please sign in to comment.