Skip to content

Instantly share code, notes, and snippets.

@marcomorain
Created May 7, 2012 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcomorain/2627311 to your computer and use it in GitHub Desktop.
Save marcomorain/2627311 to your computer and use it in GitHub Desktop.
Rendering Exceptional API to JavaScript using Ruby on Rails 3
<% 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 %>
@shime
Copy link

shime commented May 7, 2012

Thank you, I'll add it to our docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment