Subscriptions with stripe
Code examples use the stripe ruby gem. Most of the links are to stripe's documentation.
![stripe's object model][stripe_object_model_diagram]
To start, create some plans.
Code examples use the stripe ruby gem. Most of the links are to stripe's documentation.
![stripe's object model][stripe_object_model_diagram]
To start, create some plans.
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| module RSpec | |
| module Mocks | |
| module AnyInstance | |
| class Recorder | |
| def should_recieve(*args) | |
| raise NoMethodError.new "should_recieve: Did you mean 'should_receive' ?" | |
| end | |
| def should_not_recieve(*args) | |
| raise NoMethodError.new "should_not_receive: Did you mean 'should_not_receive' ?" | |
| end |
| # http://stackoverflow.com/a/8936202 | |
| # | |
| # ActiveAdmin already includes the necessary jquery in active_admin/base, | |
| # so just add this to javascripts/active_admin.js after //= require active_admin/base | |
| # | |
| # | |
| # Serialize and Sort | |
| # | |
| # model_name - you guessed it, the name of the model we are calling sort on. | |
| # This is the actual variable name, no need to change it. |