Skip to content

Instantly share code, notes, and snippets.

@thorwebdev
Created May 15, 2016 17:23
Show Gist options
  • Save thorwebdev/7594a1af108a05df9cee109584e73201 to your computer and use it in GitHub Desktop.
Save thorwebdev/7594a1af108a05df9cee109584e73201 to your computer and use it in GitHub Desktop.
get '/customers' do
# Get a list of ten customers
customers = Stripe::Customer.all(:limit => 10)
# Store customer list in an instance variable
@c = customers.data
#Output customers.erb template to user
erb :customers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment