Created
May 7, 2012 11:20
-
-
Save marcomorain/2627311 to your computer and use it in GitHub Desktop.
Rendering Exceptional API to JavaScript using Ruby on Rails 3
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
<% if Exceptional::Config::should_send_to_api? %> | |
<%= javascript_include_tag '//exceptional-js.heroku.com/exceptional.js' %> | |
<script type="text/javascript"> | |
Exceptional.setHost('exceptional-api.heroku.com'); | |
Exceptional.setKey('<%= escape_javascript Exceptional::Config.api_key %>'); | |
</script> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, I'll add it to our docs.