##Refs
Add to Gemfile: gem 'wicked_pdf'
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
| require 'stripe' | |
| # Find the MRR for a given Stripe account. | |
| # | |
| # (To do this it simply finds the total amount for all active | |
| # subscriptions (in cents). For most SAAS accounts, this is | |
| # enough, though modification is necessary to account for | |
| # things like trials, discounts, pro-rated cancellations, etc.) | |
| # | |
| # {stripe_id: YOUR_STRIPE_SECRET_KEY} - A hash with the key "stripe_id" and the correct secret key |
| #config/initializers/remove-this-sf_bs3_inputs.rb | |
| #Credit: https://github.com/rafaelfranca/simple_form-bootstrap/issues/26#issuecomment-22435894 | |
| inputs = %w[ | |
| CollectionSelectInput | |
| DateTimeInput | |
| FileInput | |
| GroupedCollectionSelectInput | |
| NumericInput |
##Refs
Add to Gemfile: gem 'wicked_pdf'
| require 'tire' | |
| require 'active_support/core_ext/numeric' | |
| require 'active_support/core_ext/time/zones' | |
| # Tire.configure { logger STDERR, level: 'debug' } | |
| class Time; DATE_FORMATS.update lucene: "%Y-%m-%dT%H:%M"; end | |
| Tire.index 'venues' do |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |