This file contains 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
NoMethodError - undefined method `product' for nil:NilClass: | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/spree-product-assembly-42069636c340/app/models/spree/shipment_decorator.rb:16:in `block (2 levels) in manifest' | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/spree-product-assembly-42069636c340/app/models/spree/shipment_decorator.rb:12:in `block in manifest' | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/spree-product-assembly-42069636c340/app/models/spree/shipment_decorator.rb:9:in `manifest' | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/spree-product-assembly-42069636c340/app/views/spree/admin/orders/_stock_item.html.erb:1:in `_600bf908b9129d377d78f41bb5d8ad76' | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/rails-8799cfa72d07/actionpack/lib/action_view/template.rb:145:in `block in render' | |
/Users/sohara/Sites/little_bits/vendor/bundle/bundler/gems/rails-8799cfa72d07/activesupport/lib/active_support/notifications.rb:125:in `instru |
This file contains 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/bash | |
curl -v -H "Accept: application/json" \ | |
-H "Content-type: application/json" \ | |
-X POST \ | |
-d '{ "key":"f08c6731-0822-4ff9-b56c-7777cc9a76aa", | |
"template_name": "order_confirmation", | |
"template_content": [ | |
{ | |
"name": "User 1", |
This file contains 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 Spree::OrderInventory do | |
let(:order) { create :completed_order_with_totals, customer_type: 'DRTC:LBT' } | |
let(:line_item) { order.line_items.first } | |
let(:original_shipment) { order.shipments.first } | |
let(:original_stock_location) { original_shipment.stock_location } | |
let(:new_stock_location) { create :stock_location } | |
let(:new_shipment) { order.shipments.detect{ |s| s.stock_location == new_stock_location}} | |
subject { described_class.new(order) } |
This file contains 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 POST "/orders/populate" for 24.146.243.207 at 2013-08-09 16:50:59 +0000 | |
Processing by Spree::OrdersController#populate as JS | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Glb9Ir3HW/fjrOqJBOq2l1akNwAsxCgWjaiqEBr0O2Y=", "variants"=>{"64"=>"1"}} | |
!!! YES, using the correct implementation. | |
This file contains 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
#1) | |
Started POST "/orders/populate" for 173.246.22.114 at 2013-08-12 15:26:05 +0000 | |
Processing by Spree::OrdersController#populate as JS | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tmfjx6ZqvsG+cD61Asv5mtKMf5WLu6xo0khyabnSPds=", "variants"=>{"20"=>"1"}} | |
Cache read: spree/app_configuration/redirect_https_to_http | |
Cache read: spree/frontend_configuration/locale | |
Spree::Order Load (0.4ms) SELECT `spree_orders`.* FROM `spree_orders` WHERE `spree_orders`.`number` IS NULL LIMIT 1 | |
(0.3ms) SELECT COUNT(*) FROM `spree_roles` INNER JOIN `spree_roles_users` ON `spree_roles`.`id` = `spree_roles_users`.`role_id` WHERE `spree_roles_users`.`user_id` IS NULL AND `spree_roles`.`name` = 'admin' | |
Cache read: spree/app_configuration/currency |
This file contains 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
#1) | |
Started POST "/orders/populate" for 173.246.22.114 at 2013-08-12 16:07:00 +0000 | |
Processing by Spree::OrdersController#populate as JS | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1JqP4jAT/mm5yUC/CZlaEtCgzX3qMzYunvaiJDax3MU=", "variants"=>{"20"=>"1"}} | |
!!! YES, using the correct implementation. |
This file contains 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
<?xml version="1.0"?> | |
<DeliveryOrders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Action="Create" xsi:noNamespaceSchemaLocation="http://schema.pchintl.com/DO/DO_1.0.xsd"> | |
<DO> | |
<DN>H35873740614</DN> | |
<PODT>2013-09-18</PODT> | |
<DCDT>2013-09-18</DCDT> | |
<BAdr> | |
<Nm1>Mildred E Vogassaris</Nm1> | |
<Adr1>50995 ROSEMARY LN</Adr1> | |
<Adr2/> |
This file contains 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
$('#checkout-summary').html(' <!--XRAY START 248 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_outer_summary.html.erb-->\n<!--XRAY START 245 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary.html.erb-->\n<h3>Order Summary<\/h3>\n<a href=\"/cart\" class=\"edit_order_contents_link\">Edit Order<\/a>\n\n<table id=\"order-line-items\" data-hook=\"order_summary\">\n<tbody>\n<!--XRAY START 243 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary_line_item.html.erb-->\n<tr>\n <td class=\"cart-image\">\n <img alt=\"Hero_boxclosed\" src=\"https://s3.amazonaws.com/lb-spree/spree/products/1830/small/hero_boxclosed.png?1383751177\" />\n <\/td>\n <td>\n Synth Kit <\/td>\n <td>\n 1\n <\/td>\n <td class=\"price-column\">\n $135.15\n <\/td>\n<\/tr>\n\n<!--XRAY END 243--><!--XRAY START 244 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary_line_item.html.erb-->\n<tr>\n <td class=\"cart-image\">\n <img alt=\"Deluxeopen3_v2lr\" src=\"http |
This file contains 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
Broue.Brew = DS.Model.extend Ember.Validations, | |
name: DS.attr('string') | |
createdAt: DS.attr('date') | |
efficiency: DS.attr('number') | |
batchSize: DS.attr('number') | |
boilLoss: DS.attr('number') | |
brewDate: DS.attr('string') | |
targetMashTemp: DS.attr('number') | |
waterGrainRatio: DS.attr('number') | |
recordedOriginalGravity: DS.attr('number') |
This file contains 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
setupController: (controller, model) -> | |
model = @store.createRecord('brew', {}) | |
controller = @controllerFor('brewsEdit') | |
controller.set('content', model) | |
controller.set('styles', @store.find('style')) |