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
# 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
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
(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
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
Spree.Admin.Views.Products.Edit = Backbone.View.extend({ | |
events: { | |
'submit form': 'save', | |
'click input[value="Cancel"]': 'cancel', | |
'click a#delete_variant': 'delete_variant', | |
'change :input': 'changed' | |
}, | |
render: function() { | |
this.$el.html(JST['admin/templates/products/edit']({ product: this.model })); |
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
if cluster=='beta' | |
role :web, '10.10.10.59' | |
role :app, '10.10.10.59' | |
role :db, '10.10.62.62', :primary => true | |
else | |
role :web, '10.10.10.216' | |
role :app, '10.10.10.216' | |
role :db, '10.10.10.216', :primary => true |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: puppet | |
# Required-Start: $network $named $remote_fs $syslog | |
# Required-Stop: $network $named $remote_fs $syslog | |
# Should-Start: puppet | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO |
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
<%= radio_button_tag 'option', 'blue', true %> Blue | |
<%= radio_button_tag 'option', 'green' %> Green | |
<%= radio_button_tag 'option', 'yellow' %> Yellow | |
<%= radio_button_tag 'option', 'brown' %> Brown | |
<%= radio_button_tag 'option', 'black' %> Black |