Skip to content

Instantly share code, notes, and snippets.

@mattapayne
Created April 25, 2009 19:48
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 mattapayne/101733 to your computer and use it in GitHub Desktop.
Save mattapayne/101733 to your computer and use it in GitHub Desktop.
#For Rails:
#in an initializer
JamBase4R.configure do |c|
c.api_key = "your JamBase API key" #this is mandatory
c.logger = RAILS_DEFAULT_LOGGER #or any class that implements the same interface (optional)
end
#For Sinatra
#within the main application file
configure do
JamBase4R.configure do |c|
c.api_key = "your JamBase API key" #this is mandatory
c.logger = MySinatraLogger.new
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment