This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl —header "X-Spree-Token: e115604bcaf72453e17ac548479e426a88c86adff56e87b1" http://127.0.0.1:3000/api/products.json | |
Started GET "/api/products.json" for 127.0.0.1 at 2012-03-27 14:54:58 +0100 | |
Processing by Spree::Api::V1::ProductsController#index as JSON | |
Completed 500 Internal Server Error in 2ms | |
NoMethodError (undefined method `has_role?' for nil:NilClass): | |
/Users/briandquinn/Development/spree/api/app/controllers/spree/api/v1/products_controller.rb:45:in `scope' | |
/Users/briandquinn/Development/spree/api/app/controllers/spree/api/v1/products_controller.rb:6:in `index' | |
actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(0.2ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.2ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.2ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db | |
(0.1ms) SELECT DATABASE() as db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "ActiveRecord::ConnectionAdapters::ConnectionHandler" do | |
let(:config){ Apartment::Test.config['connections']['mysql'].symbolize_keys } | |
let(:database){ Apartment::Test.next_db } | |
let(:database2){ Apartment::Test.next_db } | |
before do | |
Apartment.use_postgres_schemas = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: mysql2 | |
database: spree_multi_db_master | |
username: root | |
password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: mysql2 | |
database: spree_multi_db_master | |
username: root | |
password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/data/demo/releases/20120314201038/config/../app/models/spree/image_decorator.rb:1: uninitialized constant Spree::Image (NameError) | |
from /data/demo/releases/20120314201038/config/application.rb:14:in `_callback_before_77' | |
from /data/demo/releases/20120314201038/config/application.rb:13:in `glob' | |
from /data/demo/releases/20120314201038/config/application.rb:13:in `_callback_before_77' | |
from /data/demo/shared/bundle/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:548:in `_run_prepare_callbacks' | |
from /data/demo/shared/bundle/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `send' | |
from /data/demo/shared/bundle/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
from /data/demo/shared/bundle/ruby/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/reloader.rb:46:in `prepare!' | |
from /data/demo/shared/bundle/ruby/1.8/gems/railties-3.1.0/lib/rails/application/finisher.rb:41 | |
from /data/demo/shared/bundle/ruby/1.8/gems/railties-3.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL (0.2ms) UPDATE `spree_preferences` SET `value` = '9d266968-7f40-9496-630b-6a7776d3a367', `value_type` = 'string' WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/background_file_guid' | |
SQL (0.1ms) UPDATE `spree_preferences` SET `value` = '8c46198c-b734-0d11-1404-26bc2f01d500', `value_type` = 'string' WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/logo_file_guid' | |
SQL (0.3ms) UPDATE `spree_preferences` SET `value` = 14, `value_type` = 'integer' WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/horizontal_navigation_font_size' | |
SQL (0.3ms) UPDATE `spree_preferences` SET `value` = 'Cousine', `value_type` = 'string' WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/body_font' | |
SQL (0.3ms) UPDATE `spree_preferences` SET `value` = 14, `value_type` = 'integer' WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/main_navigation_header_font_size' | |
SQL (0.2ms) UPDATE `spree_preferences` SET `value` = '171e7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started PUT "/admin/general_settings" for 127.0.0.1 at 2012-03-14 14:49:23 +0000 | |
Processing by Spree::Admin::GeneralSettingsController#update as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RPXtID2J3cOz9DV5xjZsbgTIHG2s0lAUg1Gt7EKQzWg=", "site_name"=>"Spree Demo Site", "default_seo_title"=>"", "default_meta_keywords"=>"spree, demo", "default_meta_description"=>"Spree demo site", "site_url"=>"demo.spreecommerce.com", "allow_ssl_in_production"=>"1", "allow_ssl_in_staging"=>"1", "allow_ssl_in_development_and_test"=>"0", "check_for_spree_alerts"=>"1"} | |
Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE ("spree_preferences"."key" IS NOT NULL) AND ("spree_preferences"."value_type" IS NOT NULL) | |
Spree::User Load (0.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."id" = 1 LIMIT 1 | |
Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree::Preference Load (0.7ms) SELECT `spree_preferences`.* FROM `spree_preferences` WHERE `spree_preferences`.`key` = 'store1/spraycan/app_configuration/heading_font_size' LIMIT 1 | |
(0.3ms) UPDATE `spree_preferences` SET `value` = 20, `value_type` = 'integer', `updated_at` = '2012-03-14 14:37:19' WHERE `spree_preferences`.`id` = 68 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*--------------------------------------*/ | |
/* Colors | |
/*--------------------------------------*/ | |
$c_green: #8dba53; /* Spree green */ | |
$c_red: #e45353; /* Error red */ | |
$layout_background_color: <%= palette.preferred_layout_background_color %>; | |
$title_text_color: <%= palette.preferred_title_text_color %>; | |
$body_text_color: <%= palette.preferred_body_text_color %>; | |
$link_text_color: <%= palette.preferred_link_text_color %>; |