Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am samhamilton on github.
  • I am samhamilton (https://keybase.io/samhamilton) on keybase.
  • I have a public key ASBinHBMFOVqx0V9MM_U8ZiWZJUxBNznO7YTzYmup-9IHQo

To claim this, I am signing this object:

<webapp-list>
<webapp name="webroot" http-port="8080" https-enabled="false">
<root-screen host="(?!.*devwww\.host88\.net).*" location="component://webroot/screen/webroot.xml"/>
</webapp>
<webapp name="webpublic" http-port="8080" https-enabled="false">
<root-screen host="devwww\.host88\.net" location="component://webpublic/screen/webpublic.xml"/>
</webapp>
</webapp-list>
Spree::CheckoutController.class_eval do
def ensure_checkout_allowed
check = @order.checkout_allowed?
unless check == true
redirect_to spree.cart_path, :flash => {:error => I18n.t("checkout_allowed_errors.#{check}")}
end
end
end
@samhamilton
samhamilton / gist:7461735
Created November 14, 2013 05:10
PayPal Gateway Error
Redirected to http://localhost:3000/checkout/payment
Completed 302 Found in 303.9ms (ActiveRecord: 40.5ms)
Started GET "/checkout/payment" for 127.0.0.1 at 2013-11-14 12:54:06 +0800
Spree::Page Exists (0.5ms) SELECT 1 AS one FROM "spree_pages" WHERE "spree_pages"."visible" = 't' AND (("spree_pages"."slug" = 'checkout/payment' OR "spree_pages"."slug" = '/checkout/payment')) ORDER BY position ASC LIMIT 1
CACHE (0.0ms) SELECT 1 AS one FROM "spree_pages" WHERE "spree_pages"."visible" = 't' AND (("spree_pages"."slug" = 'checkout/payment' OR "spree_pages"."slug" = '/checkout/payment')) ORDER BY position ASC LIMIT 1
Deface: 1 overrides found for 'spree/checkout/edit'
Deface: 'move_checkout_header_to_layout_subheader' matched 1 times with '[data-hook="checkout_header"]'
Deface: [WARNING] No :original defined for 'move_checkout_header_to_layout_subheader', you should change its definition to include:
samhamilton@Sams ~/Sources/zooron-spree (master*) $ bundle exec rake railties:install:migrations
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
NOTE: Migration 20120831092359_spree_promo_one_two.rb from spree has been skipped. Migration with the same name already exists.
Copied migration 20130816023804_add_tax_category_id_to_spree_line_items.spree.rb from spree
Copied migration 20130816023805_migrate_tax_categories_to_line_items.spree.rb from spree
Copied migration 20130816023806_drop_spree_mail_methods.spree.rb from spree
Copied migration 20130816023807_add_admin_name_column_to_spree_shipping_methods.spree.rb from spree
Copied migration 20130816023808_add_admin_name_column_to_spree_stock_locations.spree.rb from spree
Copied migration 20130816023809_expand_order_number_size.spree.rb from spree
NOTE: Migration 20120605211305_make_users_email_index_unique.rb from spree_auth has been skipped. Migration with the same name already exists.
source 'https://rubygems.org'
gem 'rails', '~> 3.2.6'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3'
end