Public Gists by janx

Gravatar
Tue Nov 17 00:01:45 -0800 2009
1
2
3
# spec/helper/random_form_builder_spec.rb
  describe RandomFormBuilder do
    attr_reader :builder, :helper
Gravatar
Thu Nov 05 02:46:16 -0800 2009
1
2
3
require 'fileutils'
 
$cache_dir = File.join('tmp', 'watchr')
Gravatar
Wed Jul 08 20:18:38 -0700 2009
1
2
3
# application/moneyhats/app/models/order.rb
# pending - The initial order state. No successful or unsuccessful
# payments have been attempted on the order.
Gravatar
Wed Jul 08 19:15:42 -0700 2009
1
2
3
# application/moneyhats/test/test_helper.rb
include ActiveMerchant::Billing
 
Gravatar
Wed Jul 08 19:09:47 -0700 2009
1
2
3
# application/moneyhats/config/environments/development.rb
# We want to use the BraintreeGateway in test mode so
# that we can simulate real transactions during development. The code
Gravatar
Wed Jul 08 03:08:42 -0700 2009
1
2
3
class OrderTransaction < ActiveRecord::Base
  belongs_to :order
  serialize :params
Gravatar
Wed Jul 08 02:29:08 -0700 2009
1
2
3
  #--------------------------------------------------
  # ActiveMerchant Options
  #
Gravatar
Wed Jul 01 00:47:43 -0700 2009
1
2
3
MiniSite.copy_site_path_dir
- creates destination directory automatically
- copies 'mini_site/xx_XX/zzz' directory to 'mini_site/yy_YY/zzz'
Gravatar
Fri Feb 13 09:03:32 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer: