Skip to content

Instantly share code, notes, and snippets.

@gabeodess
Last active August 29, 2015 14:01
Show Gist options
  • Save gabeodess/6e5f4617edb5b8e88a6b to your computer and use it in GitHub Desktop.
Save gabeodess/6e5f4617edb5b8e88a6b to your computer and use it in GitHub Desktop.
Nested attributes being ignored for large requests.
class Delivery < ActiveRecord::Base
with_options :dependent => :destroy do |i|
i.has_many :stops
i.has_many :shares, :inverse_of => :delivery
end
with_options :through => :stops do |i|
i.has_many :drop_offs
end
has_one :stop
has_one :drop_off, :through => :stop
has_many :merchant_drop_offs, :through => :drop_offs
has_one :delivery_transfer
has_one :transfer, :through => :delivery_transfer
with_options :dependent => :destroy do |i|
i.has_many :stops
i.has_many :shares, :inverse_of => :delivery
end
with_options :through => :stops do |i|
i.has_many :purchases
end
has_many :purchased_skus, :through => :purchases
with_options :through => :shares do |i|
i.has_many :share_items
i.has_many :skus, :inverse_of => :delivery
end
has_one :featured_share, :class_name => "Share", :conditions => "(SELECT 1 AS one FROM promoted_shares WHERE promoted_shares.share_id = shares.id LIMIT 1) = 1"
has_one :promoted_share, :through => :featured_share
has_many :activity, :as => :target
has_many :purchases_through_stops, :through => :stops, :source => :purchases
# alias_method :all_purchases, :purchases
# def purchases
# all_purchases.find_for_share
# end
has_many :charges, :through => :purchases, :uniq => true
has_many :carts, :through => :purchases, :uniq => true
has_many :drop_off_subscriptions, :through => :drop_off
has_many :subscribers, :through => :drop_off_subscriptions, :source => :user
has_many :email_subscribers, :through => :drop_offs
has_many :customers, :through => :purchases, :source => :user, :uniq => true, :conditions => ['purchases.cancelled_at IS NULL AND carts.failed_at IS NULL']
has_many :customers_through_stops, :through => :purchases_through_stops, :source => :user, :uniq => true, :conditions => ['purchases.cancelled_at IS NULL AND carts.failed_at IS NULL']
alias_method :all_customers, :customers
def customers
User.joins(:purchases => [:delivery, :cart]).where(:purchases => {:cancelled_at => nil, :cart => {:failed_at => nil}, :delivery => {:id => id}}).uniq
end
accepts_nested_attributes_for :shares, :allow_destroy => true, :reject_if => proc { |obj| obj.blank? }
accepts_nested_attributes_for :stops, :allow_destroy => true, :reject_if => proc { |obj| obj.blank? }
@@accessible_attributes = [
:shares_attributes, :trigger, :allowed_time_ids, :submit, :validation_scope, :promote_share_id, :share_id
]
attr_accessible *@@accessible_attributes
attr_accessible *@@accessible_attributes, :approved_at, :farm_id, :drop_off_id, :denial_message, :submitted_at, :approve, :cutoff, :status, :stops_attributes, :price_in_cents, :as => :admin
attr_accessor :validation_scope, :denial_message, :promote_share_id
attr_reader :allowed_time_ids
@@purchase_reminder_offset = 3.hours
cattr_reader :purchase_reminder_offset
end
class FarmAccountCenter::DeliveriesController < FarmAccountCenter::ApplicationController
require 'icalendar'
include Icalendar
filter_resource_access :collection => [:index, :import]
before_filter :load_associations
before_filter :load_new, :only => [:new]
def update
if @delivery.update_attributes(params[:delivery])
p ['update successfull']
redirect = params[:return_to].present? ?
params[:return_to] :
(@delivery.validation_scope == 'draft') ?
farm_account_center_path :
@delivery.status == 'submitted' ?
[:complete_farm_account_center, @delivery] :
(@delivery.validation_scope == 'pre-offer') ?
[:new_farm_account_center, @delivery, :share] :
[:preview_farm_account_center, @delivery]
redirect_to redirect
else
render :edit
end
end
end
update successfull
Started PUT "/merchant_center/deliveries/1287" for 127.0.0.1 at 2014-05-20 09:42:32 -0400
Processing by FarmAccountCenter::DeliveriesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"C1Ll1r8vmft1aGH7Ai0jA1fB2HUL0S9vxfNzXY4tr5k=", "delivery"=>{"trigger"=>"151", "shares_attributes"=>{"029503ae9e583b7ec530fa5e7c779989"=>{"_destroy"=>"false", "id"=>"11300", "title"=>"Short Ribs test", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. Short ribs are great braised or slow cooked. ", "share_items_attributes"=>{"3bdbea57769c25a46bdf84359fee5a3c"=>{"_destroy"=>"false", "id"=>"12770", "name"=>"Short Ribs", "product_sub_category_id"=>"34", "farm_image_id"=>"965", "skus_attributes"=>{"fc841fcf55e70901d54643fe4ec6cf1c"=>{"_destroy"=>"false", "id"=>"11366", "quantity_available"=>"1", "quantity"=>"1.53", "units"=>"lbs", "price"=>"6.95"}, "db3acc2c6079d44eac2653a473e7b86f"=>{"_destroy"=>"false", "id"=>"11367", "quantity_available"=>"1", "quantity"=>"1.6", "units"=>"lbs", "price"=>"6.95"}, "0ad73e4fb2ba992e6e5523fd6c516495"=>{"_destroy"=>"false", "id"=>"11368", "quantity_available"=>"1", "quantity"=>"2.16", "units"=>"lbs", "price"=>"6.95"}, "632a96cacadab68d8dadc4e1bb9d63a5"=>{"_destroy"=>"false", "id"=>"11369", "quantity_available"=>"1", "quantity"=>"1.54", "units"=>"lbs", "price"=>"6.95"}}}}, "recipes_json"=>["", "{\"attributes\":{},\"flavors\":null,\"rating\":5,\"id\":\"Short-rib-chili-307476\",\"smallImageUrls\":[\"http://i.yummly.com/Short-rib-chili-307476-271253.s.jpg\"],\"sourceDisplayName\":\"Food52\",\"totalTimeInSeconds\":3300,\"ingredients\":[\"guajillo chiles\",\"small red beans\",\"tomatoes with juice\",\"stout\",\"sea salt\",\"tortillas\",\"marjoram\",\"tortilla chips\",\"coriander seeds\",\"water\",\"oil\",\"beef short ribs\",\"cocoa powder\",\"ground cinnamon\",\"cheddar cheese\",\"tomato paste\",\"boiling water\",\"cilantro leaves\",\"sour cream\",\"radishes\",\"hot pepper sauce\",\"red onion\",\"tortilla chips\",\"bay leaf\",\"lime\",\"red bell pepper\",\"garlic\",\"chipotle\",\"cumin seeds\",\"onion\",\"jalapeno peppers\",\"avocado\",\"dried ancho chiles\",\"coarse salt\",\"yellow onion\"],\"recipeName\":\"Short Rib Chili\"}", "{\"attributes\":{},\"flavors\":{\"salty\":0.16666666666666666,\"sour\":0.6666666666666666,\"sweet\":0.6666666666666666,\"bitter\":0.16666666666666666,\"meaty\":0.16666666666666666,\"piquant\":0.6666666666666666},\"rating\":5,\"id\":\"Dan-barber_s-braised-short-ribs-323019\",\"smallImageUrls\":[\"http://i.yummly.com/Dan-barber_s-braised-short-ribs-323019-283875.s.jpg\"],\"sourceDisplayName\":\"Food52\",\"totalTimeInSeconds\":2400,\"ingredients\":[\"red wine\",\"beef short ribs\",\"madeira\",\"light brown sugar\",\"onion\",\"bay leaves\",\"black pepper\",\"worcestershire sauce\",\"carrot\",\"vegetable oil\",\"celery rib\",\"kosher salt\",\"tamarind concentrate\",\"chicken broth\",\"garlic cloves\"],\"recipeName\":\"Dan Barber's Braised Short Ribs\"}", "{\"attributes\":{},\"flavors\":null,\"rating\":5,\"id\":\"Beer-braised-beef-short-ribs-331581\",\"smallImageUrls\":[\"http://i.yummly.com/Beer-braised-beef-short-ribs-331581-292391.s.jpg\"],\"sourceDisplayName\":\"Food52\",\"totalTimeInSeconds\":3600,\"ingredients\":[\"yellow onion\",\"olive oil\",\"kosher salt\",\"garlic cloves\",\"beef stock\",\"beer\",\"beef short ribs\",\"black pepper\"],\"recipeName\":\"Beer Braised Beef Short Ribs\"}"]}, "238a93461c456191593f0e78468b2c1b"=>{"_destroy"=>"false", "id"=>"11302", "title"=>"Gourmet Steak Burger ", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. Our gourmet steak burger is about 93-7, it includes all the meat that normally goes into a good quality grass-fed ground beef, plus all the bottom round, chuck, seven steaks and other roast. It is our number one seller, everyone loves it. This pack will make 3-4 nice size burgers. It does not shrink much.", "share_items_attributes"=>{"32beb8d454256965e378772dd85fc48e"=>{"_destroy"=>"false", "id"=>"12772", "name"=>"Ground Beef", "product_sub_category_id"=>"33", "farm_image_id"=>"970", "skus_attributes"=>{"cff348608ab7ef8bc100c0dfda3a355d"=>{"_destroy"=>"false", "id"=>"11372", "quantity_available"=>"15", "quantity"=>"1.1", "units"=>"lbs", "price"=>"9.95"}}}}, "recipes_json"=>["", "{\"attributes\":{},\"flavors\":{\"salty\":0.16666666666666666,\"sour\":0.16666666666666666,\"sweet\":0.16666666666666666,\"bitter\":0.5,\"meaty\":0.16666666666666666,\"piquant\":0},\"rating\":5,\"id\":\"Big-kahuna-burger-recipe-306922\",\"smallImageUrls\":[\"http://i.yummly.com/Big-kahuna-burger-recipe-306922-270653.s.jpg\"],\"sourceDisplayName\":\"Food Republic\",\"totalTimeInSeconds\":1800,\"ingredients\":[\"ground beef\",\"mayonnaise\",\"cilantro\",\"monterey jack cheese\",\"pineapple\",\"grill seasoning\",\"mayo\",\"teriyaki sauce\",\"bacon\",\"sriracha\"],\"recipeName\":\"Big Kahuna Burger Recipe\"}", "{\"attributes\":{},\"flavors\":null,\"rating\":5,\"id\":\"Meat_-tomato_-and-mozzarella-stuffed-zucchini-cups-309548\",\"smallImageUrls\":[\"http://i.yummly.com/Meat_-tomato_-and-mozzarella-stuffed-zucchini-cups-309548-274001.s.jpg\"],\"sourceDisplayName\":\"Kalyn's Kitchen\",\"totalTimeInSeconds\":4200,\"ingredients\":[\"seasoning\",\"flavoring\",\"zucchini\",\"low fat mozzarella\",\"ground beef\",\"anis\",\"ground turkey\",\"garlic\",\"finely chopped onion\",\"olive oil\",\"green pepper\"],\"recipeName\":\"Meat, Tomato, and Mozzarella Stuffed Zucchini Cups\"}", "{\"attributes\":{\"course\":[\"Main Dishes\"]},\"flavors\":{\"salty\":0.16666666666666666,\"sour\":0.3333333333333333,\"sweet\":0.3333333333333333,\"bitter\":0.16666666666666666,\"meaty\":0.8333333333333334,\"piquant\":0.5},\"rating\":5,\"id\":\"Sloppy-Joes-Ii-Allrecipes\",\"smallImageUrls\":[\"http://i2.yummly.com/Sloppy-Joes-Ii-Allrecipes.s.png\",\"http://i.yummly.com/Sloppy-Joes-Ii-Allrecipes-73551.s.png\"],\"sourceDisplayName\":\"AllRecipes\",\"totalTimeInSeconds\":2400,\"ingredients\":[\"yellow mustard\",\"green bell pepper\",\"black pepper\",\"salt\",\"garlic powder\",\"lean ground beef\",\"onion\",\"ketchup\",\"brown sugar\"],\"recipeName\":\"Sloppy Joes II\"}"]}, "528d0ccfaa403c790ae71eb040943e7b"=>{"_destroy"=>"false", "id"=>"11303", "title"=>"Brisket", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. Our brisket are lean delicious, They are best when slow cooked.", "share_items_attributes"=>{"d472d04cd4ab88e6dfe11457944ae2d0"=>{"_destroy"=>"false", "id"=>"12773", "name"=>"Brisket", "product_sub_category_id"=>"34", "farm_image_id"=>"1035", "skus_attributes"=>{"5ed377f72318925ce1fdec67bb5284b1"=>{"_destroy"=>"false", "id"=>"11373", "quantity_available"=>"1", "quantity"=>"2.34", "units"=>"lbs", "price"=>"8.95"}, "5fe78e5af795d97144d7290f38f7c8e6"=>{"_destroy"=>"false", "id"=>"11374", "quantity_available"=>"1", "quantity"=>"3.33", "units"=>"lbs", "price"=>"8.95"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://i.yummly.com/Slow-Cooker-Brisket-and-Onions-Martha-Stewart-195847-111162.s.png\"],\"ingredients\":[\"yellow onion\",\"garlic cloves\",\"first cut\",\"coarse salt\",\"ground pepper\",\"low sodium chicken broth\",\"fresh parsley leaves\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/ch_XzPWxRZPguhtOIHFc7SX8bW0xtf21wQKNjjG9gyJ1UCtsdVGz2IeIiVZow8p8Wtbxe2jt6BpAkWYA03pytVw=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":22200,\"rating\":5,\"recipeName\":\"Slow-Cooker Brisket and Onions\",\"sourceDisplayName\":\"Martha Stewart\",\"id\":\"Slow-Cooker-Brisket-and-Onions-Martha-Stewart-195847\"}", "{\"smallImageUrls\":[\"http://i.yummly.com/Nach-waxman_s-brisket-of-beef-307339-271116.s.jpg\"],\"ingredients\":[\"first cut\",\"beef brisket\",\"fat\",\"all-purpose flour\",\"ground black pepper\",\"corn oil\",\"onions\",\"tomato paste\",\"kosher salt\",\"garlic\",\"carrot\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/oWQsFQxS-eOOWeFHHDS0XGcox3hrgdXcSxeD78wx19ZeRTfAZQMsps1zEPY9gT6ty4hq61gVGy0zb3oCAMgsBA=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":null,\"rating\":5,\"recipeName\":\"Nach Waxman's Brisket of Beef\",\"sourceDisplayName\":\"Food52\",\"id\":\"Nach-waxman_s-brisket-of-beef-307339\"}"]}, "02ec329522af1d5acd01aa1890eaa901"=>{"_destroy"=>"false", "id"=>"11304", "title"=>"Top Round steak", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. Top round is a great inexpensive steak. Perfect for Chicken Fried Steak, Sesame Beef, or Steak Fingers. ", "share_items_attributes"=>{"441a976f9cfa6dc3a031c35ae97ad5c7"=>{"_destroy"=>"false", "id"=>"12774", "name"=>"Round Steak", "product_sub_category_id"=>"34", "farm_image_id"=>"974", "skus_attributes"=>{"264d2a1ffda90f855be154b513df8a29"=>{"_destroy"=>"false", "id"=>"11375", "quantity_available"=>"1", "quantity"=>"0.88", "units"=>"lbs", "price"=>"12.95"}, "9bb3d266aaae73aef364d2653dce84ee"=>{"_destroy"=>"false", "id"=>"11376", "quantity_available"=>"1", "quantity"=>"0.64", "units"=>"lbs", "price"=>"12.95"}, "e86417e8c2dcdb85e62e5d91b6ef6243"=>{"_destroy"=>"false", "id"=>"11377", "quantity_available"=>"1", "quantity"=>"1.06", "units"=>"lbs", "price"=>"12.95"}, "fdad312ae100c43055643df56e989380"=>{"_destroy"=>"false", "id"=>"11378", "quantity_available"=>"1", "quantity"=>"0.63", "units"=>"lbs", "price"=>"12.95"}}}}, "recipes_json"=>["", "{\"attributes\":{\"cuisine\":[\"Chinese\"]},\"flavors\":{\"salty\":1,\"sour\":0.16666666666666666,\"sweet\":0.6666666666666666,\"bitter\":0.3333333333333333,\"meaty\":0.16666666666666666,\"piquant\":0},\"rating\":4,\"id\":\"Broccoli-Beef-I-Allrecipes\",\"smallImageUrls\":[\"http://i2.yummly.com/Broccoli-Beef-I-Allrecipes.s.png\",\"http://i.yummly.com/Broccoli-Beef-I-Allrecipes-74478.s.png\"],\"sourceDisplayName\":\"AllRecipes\",\"totalTimeInSeconds\":1800,\"ingredients\":[\"ginger root\",\"broccoli\",\"white sugar\",\"round steak\",\"soy sauce\",\"minced garlic\",\"all-purpose flour\",\"beef broth\"],\"recipeName\":\"Broccoli Beef I\"}", "{\"attributes\":{\"course\":[\"Main Dishes\"],\"cuisine\":[\"American\"]},\"flavors\":{\"salty\":0.3333333333333333,\"sour\":0.5,\"sweet\":0.3333333333333333,\"bitter\":0.6666666666666666,\"meaty\":0.3333333333333333,\"piquant\":0.8333333333333334},\"rating\":4,\"id\":\"Dry-Rubbed-London-Broil-Food-Network\",\"smallImageUrls\":[\"http://i.yummly.com/Dry-Rubbed-London-Broil-Food-Network-146200.s.jpg\"],\"sourceDisplayName\":\"Food Network\",\"totalTimeInSeconds\":1380,\"ingredients\":[\"garlic powder\",\"black pepper\",\"rub\",\"chili powder\",\"dried oregano\",\"sweet paprika\",\"olive oil\",\"salt\",\"london broil\"],\"recipeName\":\"Dry Rubbed London Broil\"}", "{\"attributes\":{\"course\":[\"Main Dishes\",\"Lunch and Snacks\"]},\"flavors\":{\"salty\":0.16666666666666666,\"sour\":0.16666666666666666,\"sweet\":0.16666666666666666,\"bitter\":0.16666666666666666,\"meaty\":0.16666666666666666,\"piquant\":0},\"rating\":4,\"id\":\"French-Dip-Roast-Beef-Sandwiches-Food_com-184051\",\"smallImageUrls\":[\"http://i.yummly.com/French-Dip-Roast-Beef-Sandwiches-Food_com-184051-240401.s.jpg\"],\"sourceDisplayName\":\"Food.com\",\"totalTimeInSeconds\":11400,\"ingredients\":[\"onions\",\"onion soup mix\",\"canned beef broth\",\"kaiser rolls\",\"beer\",\"round steaks\"],\"recipeName\":\"French Dip Roast Beef Sandwiches\"}"]}, "1367adf020f0fba68cc19222d8096aa2"=>{"_destroy"=>"false", "id"=>"11305", "title"=>" Boneless Sirloin Steak ", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. This a great steak it will easily feed two-three people or one very hunger person, lol. ", "share_items_attributes"=>{"6cb9e603db4349904409c7e45805605a"=>{"_destroy"=>"false", "id"=>"12775", "name"=>"Sirloin Steak", "product_sub_category_id"=>"34", "farm_image_id"=>"1009", "skus_attributes"=>{"4a82721d8eb93ab10da3e780a3d6175c"=>{"_destroy"=>"false", "id"=>"11379", "quantity_available"=>"1", "quantity"=>"2.86", "units"=>"lbs", "price"=>"15.95"}, "558e6d8a214587a2d880ca4528938160"=>{"_destroy"=>"false", "id"=>"11380", "quantity_available"=>"2", "quantity"=>"1.71", "units"=>"lbs", "price"=>"15.95"}}}}, "recipes_json"=>["", "{\"attributes\":{\"course\":[\"Main Dishes\"],\"cuisine\":[\"Barbecue\"]},\"flavors\":{\"salty\":0.3333333333333333,\"sour\":0.16666666666666666,\"sweet\":0.16666666666666666,\"bitter\":0.5,\"meaty\":1,\"piquant\":0},\"rating\":5,\"id\":\"Sirloin-Steak-With-Garlic-Butter-Allrecipes\",\"smallImageUrls\":[\"http://i.yummly.com/Sirloin-Steak-With-Garlic-Butter-Allrecipes-98568.s.png\"],\"sourceDisplayName\":\"AllRecipes\",\"totalTimeInSeconds\":1800,\"ingredients\":[\"garlic powder\",\"top sirloin steaks\",\"pepper\",\"salt\",\"butter\",\"minced garlic\"],\"recipeName\":\"Sirloin Steak with Garlic Butter\"}", "{\"attributes\":{},\"flavors\":{\"salty\":0.6666666666666666,\"sour\":0.8333333333333334,\"sweet\":0.5,\"bitter\":0.3333333333333333,\"meaty\":0.16666666666666666,\"piquant\":0},\"rating\":5,\"id\":\"Seared-steak-and-sesame-rice-salad-310212\",\"smallImageUrls\":[\"http://i.yummly.com/Seared-steak-and-sesame-rice-salad-310212-274665.s.jpg\"],\"sourceDisplayName\":\"Big Girls Small Kitchen\",\"totalTimeInSeconds\":2100,\"ingredients\":[\"soy sauce\",\"scallions\",\"radishes\",\"rice vinegar\",\"sirloin steak\",\"vegetable oil\",\"sugar\",\"rice\",\"toasted sesame oil\"],\"recipeName\":\"Seared Steak and Sesame Rice Salad\"}", "{\"attributes\":{\"course\":[\"Main Dishes\"],\"cuisine\":[\"Asian\",\"Chinese\"]},\"flavors\":{\"salty\":0.6666666666666666,\"sour\":1,\"sweet\":0.3333333333333333,\"bitter\":0.5,\"meaty\":0.3333333333333333,\"piquant\":0},\"rating\":5,\"id\":\"Chinese-beef-broccoli-recipe-314957\",\"smallImageUrls\":[\"http://i.yummly.com/Chinese-beef-broccoli-recipe-314957-362294.s.jpg\"],\"sourceDisplayName\":\"Steamy Kitchen\",\"totalTimeInSeconds\":1800,\"ingredients\":[\"chinese black vinegar\",\"sirloin steak\",\"fresh ginger\",\"broccoli\",\"garlic\",\"cornstarch\",\"oyster sauce\",\"chinese rice wine\",\"ground black pepper\",\"cooking oil\",\"soy sauce\"],\"recipeName\":\"Chinese Beef Broccoli Recipe\"}"]}, "5be7c611207dd08e63af633619e39836"=>{"_destroy"=>"false", "id"=>"11309", "title"=>"Carrots", "description"=>"All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\nThese carrots are sweet, and juicy. They are great as a snack some people like them with peanut butter. ", "share_items_attributes"=>{"22b909b98172a06e11fed3da764bf700"=>{"_destroy"=>"false", "id"=>"12779", "name"=>"Carrots", "product_sub_category_id"=>"16", "farm_image_id"=>"903", "skus_attributes"=>{"2d310098d14bc44df3b49d388846efd5"=>{"_destroy"=>"false", "id"=>"11386", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Bundle", "price"=>"3.95"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/AWDgY260c_O4V9wwfpwsbJOOB4CpQ02CeTAOoaEb-Y2PakXRY7JmFQLetBPpAHAwvAMiovJfM64unughP7Pcug=s90\"],\"ingredients\":[\"olive oil\",\"agave nectar\",\"carrots\",\"salt\",\"balsamic vinegar\",\"black ground pepper\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/bKS3C7q5PmY4winIymMJppah53AqVbN6WedEvv7FNx57rfG2zOZyG2dfMMaNJ1Qho0dZn09UDKgp5hjz7Fj5Rg=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":1800,\"rating\":5,\"recipeName\":\"Roasted Carrots with Agave-Balsamic Glaze\",\"sourceDisplayName\":\"Kalyn's Kitchen\",\"id\":\"Roasted-carrots-with-agave-balsamic-glaze-309653\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Honey-glazed-carrots-297192-266292.s.jpg\"],\"ingredients\":[\"Country Crock® Spread\",\"baby carrots\",\"onion\",\"salt\",\"sugar\"],\"flavors\":{\"salty\":1,\"sweet\":0.8333333333333334,\"bitter\":0.5},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/UzYg12vNBvFw05bz6MxXqkSx0XxHNf7rVuIEU6CRCX4DecBMHcRRT-mOX9T-OZLW8aVR99csMQqxogcOyqchhw=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":1200,\"rating\":4,\"recipeName\":\"Honey-glazed Carrots\",\"sourceDisplayName\":\"Country Crock\",\"id\":\"Honey-glazed-carrots-297192\"}", "{\"smallImageUrls\":[\"http://lh4.ggpht.com/irqYuPhBXSZZUzJkFqObp5G1j-iUy3ukvli6T7iA9IUrR98m3UmswQuNoZz0KMRjLGUWkKqtw_hKOTBI-h1gMA=s90\"],\"ingredients\":[\"boiling potatoes\",\"bay leaf\",\"dry red wine\",\"olive oil\",\"garlic\",\"carrots\",\"salt\",\"sugar\",\"dried thyme\",\"water\",\"beef broth\",\"chopped parsley\",\"all-purpose flour\",\"chuck\",\"balsamic vinegar\",\"black ground pepper\",\"tomato paste\",\"yellow onion\"],\"flavors\":{\"sour\":0.16666666666666666,\"salty\":0.3333333333333333,\"sweet\":0.16666666666666666,\"meaty\":0.16666666666666666,\"bitter\":0.16666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/Seas1MPwAt4Vs-NDSF5C5F9CBqyll2Mz6I0wWVUm4QBGRhRo20Xmcms-8SQSG1BWwdqNLzqKXvkOm6exl8qFsXk=s90-c\"},\"attributes\":{\"holiday\":[]},\"totalTimeInSeconds\":12600,\"rating\":5,\"recipeName\":\"Beef Stew with Carrots & Potatoes\",\"sourceDisplayName\":\"Once Upon A Chef\",\"id\":\"Beef-Stew-with-Carrots-_-Potatoes-575524\"}"]}, "7616eb5488fe4586d14bb1c807e1c35c"=>{"_destroy"=>"false", "id"=>"11310", "title"=>"Beets", "description"=>" All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\n\r\nLast beets of the season, get them while they last.", "share_items_attributes"=>{"bc33e713e5b574742f911f4b164db070"=>{"_destroy"=>"false", "id"=>"12780", "name"=>"Beets", "product_sub_category_id"=>"18", "farm_image_id"=>"903", "skus_attributes"=>{"05ee56a4102688057c2c1f4de0732d16"=>{"_destroy"=>"false", "id"=>"11387", "quantity_available"=>"50", "quantity"=>"1", "units"=>"Bundle", "price"=>"3.45"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/ch8f1RfHS45EMGJmLMYzUGyQzDnZdZKKFVrNNY_lLTu97cyy4RwC8e8wTXySYs2bzDOSHe88yYxT5XEsqobI=s90\"],\"ingredients\":[\"kosher salt\",\"extra-virgin olive oil\",\"balsamic vinegar\",\"black ground pepper\",\"maple syrup\",\"beetroots\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/I9frOaxuEp0QPpJMSgaSm2xMNNhU3CIL205feAw9sGuFRN13JvWW2Z-plvukhY8TbJYyyKXhY6Ou7uglLo7Lkg=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":2700,\"rating\":5,\"recipeName\":\"Balsamic-Glazed Roasted Beets\",\"sourceDisplayName\":\"Once Upon A Chef\",\"id\":\"Balsamic-glazed-roasted-beets-310609\"}", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/yPyJ-iTMdYNrDslr16uqyve_GC1sEl5DCcxG8l9ot_9LtjxRyBfzjHBE17L6lsd8JpyaaonRr-xmoz9QnoLFCQ=s90\"],\"ingredients\":[\"bacon\",\"sea salt\",\"olive oil\",\"white wine vinegar\",\"leeks\",\"beetroots\"],\"flavors\":{\"sour\":0.5,\"salty\":0.6666666666666666,\"sweet\":0.5,\"meaty\":0.16666666666666666,\"bitter\":0.8333333333333334},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/YI7O8bdrDQtSbU0eVkyzHHPk2X6m5SrbU3ZcT0P2iZc1NLW3CkkBaX_SB06F5PbNlcQ_admD_fV-Ql8YcYsHSq4=s90-c\"},\"attributes\":{\"course\":[\"Salads\"]},\"totalTimeInSeconds\":2700,\"rating\":5,\"recipeName\":\"Roasted Beet Salad with Frizzled Leeks and Bacon\",\"sourceDisplayName\":\"Big Girls Small Kitchen\",\"id\":\"Roasted-beet-salad-with-frizzled-leeks-and-bacon-310138\"}", "{\"smallImageUrls\":[\"http://lh6.ggpht.com/UFsSAvKOhScqAy3OZe3lg4n3KqReDAjRnthV6U6GslhISZsJ_1M8zhPuZUZsKUoCTzPL4nbv0Xao1Bt2EcIykM8=s90\"],\"ingredients\":[\"tahini\",\"olive oil\",\"garlic\",\"lemon juice\",\"salt\",\"beetroots\"],\"flavors\":{\"sour\":0.6666666666666666,\"salty\":0.6666666666666666,\"sweet\":0.5,\"meaty\":0.6666666666666666,\"bitter\":0.8333333333333334},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/dT2j670QNIRmhs0jMlYYmxYQEsCKm0SwqilS3EMVp1cioLuG7YS8ERd5YrFCezD_BAwZqGwIiKGUy9QVz0ys=s90-c\"},\"attributes\":{\"course\":[\"Appetizers\"]},\"totalTimeInSeconds\":900,\"rating\":5,\"recipeName\":\"Beet Hummus\",\"sourceDisplayName\":\"Not Without Salt\",\"id\":\"Beet-hummus-308970\"}"]}, "1dd2f7fde95e568e4c1f5be988f1df45"=>{"_destroy"=>"false", "id"=>"11311", "title"=>"Sm Cabbage", "description"=>"All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\n\r\nThese are small cabbage perfect or one or two people. ", "share_items_attributes"=>{"cd235671cd9367a87a54e06e6d9a02e6"=>{"_destroy"=>"false", "id"=>"12781", "name"=>"Sm Cabbage", "product_sub_category_id"=>"2", "farm_image_id"=>"903", "skus_attributes"=>{"4eeabb073d099c8506036a9d1422a2fa"=>{"_destroy"=>"false", "id"=>"11388", "quantity_available"=>"30", "quantity"=>"1", "units"=>"Head(s)", "price"=>"2.45"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/iD0O6O7fmQ72qPi8ZbFopLeJAYnaCbr873Auy_XF0A5O_pezA37EB-1qPfM1WFH6A5nKes5BfalH0yxiotYDLw=s90\"],\"ingredients\":[\"garlic paste\",\"green cabbage\",\"rice vinegar\",\"ginger\",\"sesame oil\",\"agave nectar\",\"peanuts\",\"sesame seeds\"],\"flavors\":{\"sour\":0.8333333333333334,\"salty\":0.16666666666666666,\"sweet\":0.16666666666666666,\"meaty\":0.16666666666666666,\"bitter\":0.3333333333333333},\"imageUrlsBySize\":{\"90\":\"http://lh3.ggpht.com/Ls1d63Exkf-bFaMvAWvM9P8Bij_F-IRUpeiUfyFYtUqBs2ibsSgZ4-b0bPHCa6uTb5C6E9Tuj9IFwraG-8iV=s90-c\"},\"attributes\":{\"course\":[\"Salads\"],\"cuisine\":[\"asian\"]},\"totalTimeInSeconds\":1200,\"rating\":5,\"recipeName\":\"Asian Cabbage Salad with Sesame Seeds\",\"sourceDisplayName\":\"Kalyn's Kitchen\",\"id\":\"Asian-cabbage-salad-with-sesame-seeds-309725\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/White-beans-and-cabbage-315014-362184.s.jpg\"],\"ingredients\":[\"green cabbage\",\"onion\",\"fresh thyme\",\"white beans\",\"potatoes\",\"salt\",\"extra-virgin olive oil\"],\"flavors\":{\"sour\":1,\"salty\":0.16666666666666666,\"sweet\":0.3333333333333333,\"meaty\":0.16666666666666666,\"bitter\":0.16666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/fxxwX0wdB1Ij7upn0AwTP3771hwj6mymZSpwR9lnr1AQnFEYWWl5KThr9T-Z1fzBD2IIo-7NyHOXuFCMPi4-1w=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":2100,\"rating\":5,\"recipeName\":\"White Beans and Cabbage\",\"sourceDisplayName\":\"Steamy Kitchen\",\"id\":\"White-beans-and-cabbage-315014\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Classic-coleslaw-303481-266530.s.jpg\"],\"ingredients\":[\"cabbage\",\"green bell pepper\",\"carrots\",\"lemon juice\",\"salt\",\"sugar\",\"hellmann' or best food real mayonnais\"],\"flavors\":{\"sour\":0.8333333333333334,\"salty\":1,\"sweet\":0.8333333333333334,\"piquant\":0.6666666666666666,\"meaty\":0,\"bitter\":0.5},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/m8LK2tFm2_vZRcqkHxST248jFylUuU0_DsNrtbQQgLm3Vp_k5Zp4tqDEz_D1VJdKwPSis5M_4HeZCcyPzXEv=s90-c\"},\"attributes\":{\"course\":[\"Salads\"],\"cuisine\":[\"southern\",\"american\"]},\"totalTimeInSeconds\":600,\"rating\":4,\"recipeName\":\"Classic Coleslaw\",\"sourceDisplayName\":\"Hellmann's\",\"id\":\"Classic-coleslaw-303481\"}"]}, "751c57e7c1e1de1a2966807efb6a754c"=>{"_destroy"=>"false", "id"=>"11307", "title"=>"Collard Green", "description"=>" All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\nThese Collard Greens are the first of the season. Get them young and fresh. Each bundle will make two small servings or one large serving.\r\n", "share_items_attributes"=>{"104ed8bf9bcf20e2f5ab15780960716f"=>{"_destroy"=>"false", "id"=>"12777", "name"=>"Collard Greens", "product_sub_category_id"=>"73", "farm_image_id"=>"1064", "skus_attributes"=>{"e1f580442658e7aac8717f927685b415"=>{"_destroy"=>"false", "id"=>"11384", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Bunch", "price"=>"3.45"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[],\"ingredients\":[\"butter\",\"collard greens\",\"onion\",\"olive oil\",\"red pepper flakes\",\"salt\",\"vegetable stock\",\"tomatoes\",\"ground black pepper\",\"clove garlic, finely chopped\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/iHHk38Uw3vOxU69_mF_JHAPMSxZpcZli--wxpP7mZ9C9UT8TYOIP1XytkNHWTw01VrcIO3l7YzJTa3qCEcH5sQ=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":3000,\"rating\":5,\"recipeName\":\"Vegetarian \\\"Southern-style\\\" Collard Greens\",\"sourceDisplayName\":\"Food Network\",\"id\":\"Vegetarian-_southern_style_-Collard-Greens-Food-Network\"}", "{\"smallImageUrls\":[],\"ingredients\":[\"soy sauce\",\"coconut milk\",\"collard greens\",\"mustard\",\"olive oil\",\"garlic\",\"bok choy\",\"unsalted butter\",\"bacon slices\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/V1Jb6YYPIxCjad76sz1mQaeGWl176YeN0tqH0H4vWPeUbUhiWF77wvitDMYMQdmCviZjzzWhiDPQPTdzCZX96w=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":2400,\"rating\":5,\"recipeName\":\"Collard Greens\",\"sourceDisplayName\":\"Food Republic\",\"id\":\"Collard-greens-306839\"}", "{\"smallImageUrls\":[],\"ingredients\":[\"fresh lemon juice\",\"black pepper\",\"fresh basil\",\"sea salt\",\"arugula\",\"garlic\",\"cashews\",\"herbes de provence\",\"red bell pepper\",\"oil\",\"collard leaves\",\"water\"],\"flavors\":null,\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/UZ1kMXf-H-fi1it-vaj2FeFVEBJWErGp9gdJgcAgianz6lzdUdVK0rVsn0DcTz3YhBop8TRNn21gY22SIJoV0A=s90-c\"},\"attributes\":{\"course\":[\"Appetizers\"]},\"totalTimeInSeconds\":null,\"rating\":5,\"recipeName\":\"Collard Wraps with Herbed Cashew Spread and Roast Peppers\",\"sourceDisplayName\":\"Food52\",\"id\":\"Collard-wraps-with-herbed-cashew-spread-and-roast-peppers-331317\"}"]}, "986e647049d791cf1c522b4c8ecacc87"=>{"_destroy"=>"false", "id"=>"11312", "title"=>"Parsip", "description"=>"All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\n\r\nParsnips are a delicious root vegetable related to carrots and parsley. They have a sweet flavor and are normally cooked but can be eaten raw. They are high in vitamins especially potassium.", "share_items_attributes"=>{"538d606c61ada0d7c9f5d555698200e1"=>{"_destroy"=>"false", "id"=>"12782", "name"=>"Parsnip", "product_sub_category_id"=>"18", "farm_image_id"=>"903", "skus_attributes"=>{"8905a5cce342bf5c7e37fa28ba9739cf"=>{"_destroy"=>"false", "id"=>"11389", "quantity_available"=>"1", "quantity"=>"1", "units"=>"lbs", "price"=>"3.45"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://lh6.ggpht.com/AyOCtV3mEcxHNYfNFsop5clUboeehqDjYzt9e08fc4tcwZrQunqub6-XZe7o_bxW9UU3Fh4jqpPet48Fr984oQ=s90\"],\"ingredients\":[\"chives\",\"white wine\",\"butter\",\"scallops\",\"carambola\",\"pepper\",\"corn\",\"fava beans\",\"heavy cream\",\"fresh thyme\",\"olive oil\",\"parsnips\",\"garden peas\",\"lemon\",\"lima beans\",\"lime\",\"salt\",\"sugar\",\"water\",\"vanilla beans\"],\"flavors\":{\"sour\":0.6666666666666666,\"salty\":0.16666666666666666,\"sweet\":0.5,\"meaty\":0.16666666666666666,\"bitter\":0.16666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/8ARquthErZCv9Yg3CgEOhKtBhZkkA5EK0KlWOsgaFd0-aQDKWYsoKENz_XFrjZpkCGYtLnFotKu288QSdFriOw=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":3600,\"rating\":5,\"recipeName\":\"Seared Scallops With Carambola Sauce, Parsnip And Succotash\",\"sourceDisplayName\":\"Food Republic\",\"id\":\"Seared-scallops-with-carambola-sauce_-parsnip-and-succotash-306021\"}", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/IXSi4m7buO6pE-AqV-TboKZZFmPS21NJ1EO5NZX5CQPTQVn_OpV6DKNrpXUB48dE8CG9nOJusGS788RmFM_asA=s90\"],\"ingredients\":[\"purple onion\",\"fennel\",\"fresh thyme\",\"salsa\",\"olive oil\",\"garlic cloves\",\"carrots\",\"parsnips\",\"maldon sea salt\"],\"flavors\":{\"sour\":0.8333333333333334,\"salty\":0.16666666666666666,\"sweet\":0.6666666666666666,\"meaty\":0.3333333333333333,\"bitter\":0.5},\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/WP4VaSZOg9Fb2XlAZTvOwochzne-SdAKNGen639UNGhsRUz-Ns7rh8Ns0RVIrTr3IR3XHeTgY_I2mac48crkmVo=s90-c\"},\"attributes\":{\"cuisine\":[\"english\",\"american\"]},\"totalTimeInSeconds\":3600,\"rating\":4,\"recipeName\":\"Roasted Vegetables\",\"sourceDisplayName\":\"Martha Stewart\",\"id\":\"Roasted-Vegetables-Martha-Stewart-194730\"}", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/thsKY1bym9xNBETd0lYhPaatQwZD8GoChYZ5d9p4HT4EtYrJywrjkYcJUeo3xvmNuweJpas9omCBWgD_zqdA=s90\"],\"ingredients\":[\"bay leaf\",\"celery ribs\",\"table salt\",\"onion\",\"egg noodles\",\"carrots\",\"parsnips\",\"vegetable oil\",\"chicken\",\"fresh dill\",\"water\",\"black ground pepper\"],\"flavors\":{\"sour\":0.3333333333333333,\"salty\":0.8333333333333334,\"sweet\":0.3333333333333333,\"meaty\":0.8333333333333334,\"bitter\":0.5},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/mzdmXrdm0R59USjf4D50n5YhHM3uazur5V0QSM8VpJhmKu3u1M-AeQmC-SxGKrKCXSyWWfFF375NjtrZDHKrtQ=s90-c\"},\"attributes\":{\"course\":[\"Soups\"],\"cuisine\":[\"american\"],\"holiday\":[\"winter\"]},\"totalTimeInSeconds\":3900,\"rating\":5,\"recipeName\":\"Chicken Noodle Soup\",\"sourceDisplayName\":\"Smitten Kitchen\",\"id\":\"Chicken-noodle-soup-305653\"}"]}, "0537b6b7eb5508cc23211471c57b5fdc"=>{"_destroy"=>"false", "id"=>"11313", "title"=>"Baby Back Ribs", "description"=>"Our beef is totally grass-fed. No hormones, antibiotics or steroids.\r\n\r\n", "share_items_attributes"=>{"3e534a29fec0b7f210b399e28931866a"=>{"_destroy"=>"false", "id"=>"12783", "name"=>"Baby Back Ribs", "product_sub_category_id"=>"34", "farm_image_id"=>"903", "skus_attributes"=>{"edd0c002373c114bb1d8165c04899a90"=>{"_destroy"=>"false", "id"=>"11390", "quantity_available"=>"1", "quantity"=>"2.55", "units"=>"lbs", "price"=>"7.95"}, "36bba6866c411bebe3f4708b094e096b"=>{"_destroy"=>"false", "id"=>"11391", "quantity_available"=>"1", "quantity"=>"2.46", "units"=>"lbs", "price"=>"7.95"}, "042127b5b391d7112cc7ffd430ae0e29"=>{"_destroy"=>"false", "id"=>"11392", "quantity_available"=>"1", "quantity"=>"2.39", "units"=>"lbs", "price"=>"7.95"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Piggy-favorites-from-pig-of-the-month-giveaway-357957-351443.s.jpg\"],\"ingredients\":[\"sausages\",\"bacon\",\"beef jerky\",\"baby back ribs\"],\"flavors\":{\"salty\":1,\"sweet\":0.16666666666666666,\"meaty\":0.8333333333333334,\"bitter\":0.8333333333333334},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/7WYjlQrilqVKWf00YGDO8sQ0fm111pyw0WwG-XYZwaXbDuWzSBuspO7bxAHT35bOIjib04rdHYdLRZd9l6Cf8Q=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":null,\"rating\":5,\"recipeName\":\"Piggy Favorites from Pig of the Month Giveaway\",\"sourceDisplayName\":\"Food Republic\",\"id\":\"Piggy-favorites-from-pig-of-the-month-giveaway-357957\"}", "{\"smallImageUrls\":[\"http://lh4.ggpht.com/uJOzSJQZ8FWnJrm6kdJwT5_-HCC9_pgqZEW0qA9hod1i3HURmNsYkD3CaiHwOJdnMLg3_RpdZFYbt8mPYQ1UyA=s90\"],\"ingredients\":[\"chopped fresh chives\",\"chicken\",\"baby back ribs\",\"grated lemon zest\"],\"flavors\":{\"sour\":0.3333333333333333,\"salty\":0.16666666666666666,\"sweet\":0.16666666666666666,\"meaty\":0.8333333333333334,\"bitter\":0.16666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/l1kvNZULxlQYrEAEelQ9eefMnljlOgqeTTnHcXCRhTCPl-1kx5rhdKtHX2qpNJn0MZxzdmYT_fSTWRN5-wtRRg=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":6300,\"rating\":4,\"recipeName\":\"Citrus Dry-Rubbed Ribs\",\"sourceDisplayName\":\"Food Republic\",\"id\":\"Citrus-Dry-Rubbed-Ribs-511799\"}", "{\"smallImageUrls\":[\"http://lh6.ggpht.com/Wq-lud9rraf5SX6wQZyOvR5yFWtwQp_Txj9NAk7Cm10n5LsPVCbufDNGlD8bQe071yWEUHO704RhvTLR1JKBLQ=s90\"],\"ingredients\":[\"salt\",\"baby back ribs\",\"sweet chilisauce\"],\"flavors\":{\"piquant\":0.8333333333333334},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/x-x14RrKx7y0auQnB5Ku2OPbyl30a2wpqWV_c69gbeqS3sIDs01fIg3LT0Z0sEkizGhxPvoS3DvHtb95Qzuu=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":null,\"rating\":5,\"recipeName\":\"Baby Back Ribs Fall off the Bone\",\"sourceDisplayName\":\"Steamy Kitchen\",\"id\":\"Baby-Back-Ribs-Fall-off-the-Bone-514455\"}"]}, "2cd3307ba6aaabca0e098eb0b9b53461"=>{"_destroy"=>"false", "id"=>"11314", "title"=>"Porterhouse", "description"=>"Our beef is totally grass-fed. No hormones, antibiotics or steroids.\r\n\r\nThese are really great steaks. Each offer is a Package of two steaks.\r\n ", "share_items_attributes"=>{"99bf5c6c0367dcd4e15f65c74ef1a16e"=>{"_destroy"=>"false", "id"=>"12784", "name"=>"Porterhouse", "product_sub_category_id"=>"34", "farm_image_id"=>"903", "skus_attributes"=>{"7e78a485a5738292cff465da02212cee"=>{"_destroy"=>"false", "id"=>"11393", "quantity_available"=>"1", "quantity"=>"2.46", "units"=>"lbs", "price"=>"21.95"}}}}, "recipes_json"=>[""]}, "88aad6a86c4bcb8ee21071d5d5bfc954"=>{"_destroy"=>"false", "id"=>"11315", "title"=>"Round Eye Steak", "description"=>"Our beef is totally grass-fed. No hormones, antibiotics or steroids.\r\n\r\nThese steak aren't too expensive. They are good cooked as a steak or used in other dishes. ", "share_items_attributes"=>{"d37fddce1ed70d793cd4551101eccef9"=>{"_destroy"=>"false", "id"=>"12785", "name"=>"Round Steak", "product_sub_category_id"=>"34", "farm_image_id"=>"903", "skus_attributes"=>{"8e1cd744d5fde7adbf69298e8fd6305b"=>{"_destroy"=>"false", "id"=>"11394", "quantity_available"=>"1", "quantity"=>"1.55", "units"=>"lbs", "price"=>"12.95"}, "ca187bd272997748d03470404181cbff"=>{"_destroy"=>"false", "id"=>"11395", "quantity_available"=>"1", "quantity"=>"1.37", "units"=>"lbs", "price"=>"12.95"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://lh5.ggpht.com/pMkSsyekJRof7NNcYYJmo7CYkHu75gTw6CVVLkNg4MXHjfha3l5bHZuv3sNYzv0i-p8Egi14gJ7Ibqzj55IH6hY=s90\"],\"ingredients\":[\"soy sauce\",\"fresh ginger root\",\"broccoli\",\"garlic\",\"beef broth\",\"round steaks\",\"all-purpose flour\",\"white sugar\"],\"flavors\":{\"sour\":1,\"salty\":0.8333333333333334,\"sweet\":0.6666666666666666,\"meaty\":0.3333333333333333,\"bitter\":0.5},\"imageUrlsBySize\":{\"90\":\"http://lh4.ggpht.com/6iUwdYaFFLhx1rJloLztDvrYN4iv3Aohna5yFvxXqjdiOfFT7wrYzRPEMgv4dJX0nsswNm4QQM1Z__Zfa-wR=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":1800,\"rating\":4,\"recipeName\":\"Broccoli Beef I\",\"sourceDisplayName\":\"AllRecipes\",\"id\":\"Broccoli-Beef-I-Allrecipes\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Slow-cooker-orange-beef-310371-274824.s.jpg\"],\"ingredients\":[\"ground ginger\",\"green bell pepper\",\"gluten free soy sauce\",\"orange juice\",\"red bell pepper\",\"bok choy\",\"green onions sliced\",\"round steaks\",\"honey\",\"basmati rice\"],\"flavors\":{\"sour\":1,\"salty\":0.3333333333333333,\"sweet\":0.8333333333333334,\"meaty\":0.16666666666666666,\"bitter\":0.3333333333333333},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/qZmUiy8-w555-qhvNxU9yNgLtZhIFHjs-7wiYlS5akOyJctfXVToRvtrvI1XzFlKCGKCns1UsS0UlKbNfMT6TQ=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":null,\"rating\":5,\"recipeName\":\"Slow Cooker Orange Beef\",\"sourceDisplayName\":\"A Year of Slow Cooking\",\"id\":\"Slow-cooker-orange-beef-310371\"}", "{\"smallImageUrls\":[\"http://lh6.ggpht.com/UlHVIAQ7vSNNtA9_6sFCMgoV1UO-GHUhJxY5bxr3s5-RcKukAl_5mKqZvx8qF_qnx6fXl4fc5cRcNB3fanazZw=s90\"],\"ingredients\":[\"olive oil\",\"garlic\",\"round steaks\",\"coars ground black pepper\"],\"flavors\":{\"sour\":0.8333333333333334,\"salty\":0.16666666666666666,\"sweet\":0.16666666666666666,\"meaty\":0.3333333333333333,\"bitter\":0.6666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/wURhXoaWhpAjPTjAeEfWHrFng8p-bkpJPu_ETHVC7TMFsP6FGs3xgTN_HJkywfMinwHuz3UTgajNAhB3D64Eyg=s90-c\"},\"attributes\":{},\"totalTimeInSeconds\":1800,\"rating\":4,\"recipeName\":\"Garlic Pepper Steak\",\"sourceDisplayName\":\"AllRecipes\",\"id\":\"Garlic-Pepper-Steak-Allrecipes\"}"]}, "e17bad59d3d340f64047b3a3f26e3e9f"=>{"_destroy"=>"false", "id"=>"11316", "title"=>"Tenderloin", "description"=>"Our beef is totally grass-fed. No hormones, antibiotics or steroids.\r\n\r\nThis is the best steak we offer. Hope you enjoy!!", "share_items_attributes"=>{"581de5c2ee7b453258f77c8dd716b17f"=>{"_destroy"=>"false", "id"=>"12786", "name"=>"Beef Tenderlion", "product_sub_category_id"=>"34", "farm_image_id"=>"903", "skus_attributes"=>{"0dc661e8616b4d04a87c11b403e5fdab"=>{"_destroy"=>"false", "id"=>"11396", "quantity_available"=>"1", "quantity"=>"1.84", "units"=>"lbs", "price"=>"28.95"}}}}, "recipes_json"=>[""]}, "2516b957810098a184c05efdd2af774b"=>{"_destroy"=>"false", "id"=>"11317", "title"=>"Ox Tail", "description"=>"Our beef is totally grass-fed. No hormones, antibiotics or steroids.\r\n\r\nOx tail makes excellent soup.", "share_items_attributes"=>{"a3b621fd91310515274a0856347e6bd4"=>{"_destroy"=>"false", "id"=>"12787", "name"=>"Ox Tail", "product_sub_category_id"=>"40", "farm_image_id"=>"903", "skus_attributes"=>{"2d3d60d5c6e329ff4d92dc92468fa02c"=>{"_destroy"=>"false", "id"=>"11397", "quantity_available"=>"1", "quantity"=>"2.49", "units"=>"lbs", "price"=>"4.45"}, "049c3f36c0b54a9cf88cceb89b8fa996"=>{"_destroy"=>"false", "id"=>"11398", "quantity_available"=>"1", "quantity"=>"1.3", "units"=>"lbs", "price"=>"4.45"}}}}, "recipes_json"=>[""]}, "a8984a320ced88439842906dc925df28"=>{"_destroy"=>"false", "id"=>"11318", "title"=>"Beef Soup Bones", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. These make excellent soup. ", "share_items_attributes"=>{"5fb22e47477e529b692e5b9d72798cd7"=>{"_destroy"=>"false", "id"=>"12788", "name"=>"Beef Soup Bones", "product_sub_category_id"=>"40", "farm_image_id"=>"1085", "skus_attributes"=>{"13f597305ebfa3a499638dddc9b8579d"=>{"_destroy"=>"false", "id"=>"11399", "quantity_available"=>"1", "quantity"=>"1.7", "units"=>"lbs", "price"=>"4.45"}, "1550f64b4ed21d9e9040bd800dcb897d"=>{"_destroy"=>"false", "id"=>"11400", "quantity_available"=>"1", "quantity"=>"1.95", "units"=>"lbs", "price"=>"4.45"}, "f3bc9d24416ad814c77e682cf6d01307"=>{"_destroy"=>"false", "id"=>"11401", "quantity_available"=>"1", "quantity"=>"1.49", "units"=>"lbs", "price"=>"4.45"}, "f793035460efd333bd1d357d5443a1d8"=>{"_destroy"=>"false", "id"=>"11402", "quantity_available"=>"1", "quantity"=>"1.46", "units"=>"lbs", "price"=>"4.45"}}}}, "recipes_json"=>["", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Baked-Beefy-Onion-Soup-Allrecipes-66062.s.png\"],\"ingredients\":[\"butter\",\"beef bouillon granules\",\"beef soup bones\",\"black peppercorns\",\"onion\",\"carrots\",\"swiss cheese\",\"french bread\",\"water\",\"fresh parsley\"],\"flavors\":{\"sour\":0.6666666666666666,\"salty\":0.8333333333333334,\"sweet\":0.5,\"piquant\":0.5,\"meaty\":0.8333333333333334,\"bitter\":0.6666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh5.ggpht.com/vFwrALCp0b57qPAoHDGPKR497CrWK4h0UrqbIh6Pwx1rB6hFamWMhrxUTFR8kETTassUfvokOGmaIFvC2GM1ng=s90-c\"},\"attributes\":{\"course\":[\"Soups\"]},\"totalTimeInSeconds\":11700,\"rating\":4,\"recipeName\":\"Baked Beefy Onion Soup\",\"sourceDisplayName\":\"Taste of Home\",\"id\":\"Baked-Beefy-Onion-Soup-TasteOfHome\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Scotch-Broth-Soup-Allrecipes-60599.s.png\"],\"ingredients\":[\"beef soup bones\",\"pearl barley\",\"peppercorns\",\"onion\",\"turnips\",\"carrots\",\"salt\",\"water\",\"chopped celery\"],\"flavors\":{\"sour\":0.16666666666666666,\"salty\":0.16666666666666666,\"sweet\":0.16666666666666666,\"meaty\":0.16666666666666666,\"bitter\":0.16666666666666666},\"imageUrlsBySize\":{\"90\":\"http://lh3.ggpht.com/eCXXUvCjE2FXjBOyV6OIl-L_Q02HdgVTqkTEK2sXJxynzkkZh0u13_Sm2N_51mqQE6kwvGMkFkJ3wXpDRJP1YQ=s90-c\"},\"attributes\":{\"course\":[\"Soups\"]},\"totalTimeInSeconds\":13800,\"rating\":5,\"recipeName\":\"Scotch Broth Soup\",\"sourceDisplayName\":\"Taste of Home\",\"id\":\"Scotch-Broth-Soup-TasteOfHome\"}", "{\"smallImageUrls\":[\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Portuguese-Kale-Soup-Allrecipes-97754.s.png\",\"http://yummly-recipeimages-compressed.s3.amazonaws.com/Portuguese-Kale-Soup-Allrecipes-97167.s.png\"],\"ingredients\":[\"cabbage\",\"beef soup bones\",\"pepper\",\"hot water\",\"chorizo sausage\",\"kale\",\"potatoes\",\"salt\",\"water\",\"white pea bean\"],\"flavors\":{\"salty\":0.16666666666666666,\"piquant\":0.8333333333333334},\"imageUrlsBySize\":{\"90\":\"http://lh6.ggpht.com/BJUlfrsgh5yfyhQjp48DU_IhbgOqJmrc4JYY9LiEvuB2Hv-OBfClq65ls_IfOWkDExh7SVDzuzWg1_c3JxVrfQ=s90-c\"},\"attributes\":{\"course\":[\"Soups\"],\"cuisine\":[\"portuguese\"]},\"totalTimeInSeconds\":28800,\"rating\":4,\"recipeName\":\"Portuguese Kale Soup\",\"sourceDisplayName\":\"AllRecipes\",\"id\":\"Portuguese-Kale-Soup-Allrecipes\"}"]}, "20ac1f33b2bcfd558ca13ca2e5063cba"=>{"_destroy"=>"false", "id"=>"11320", "title"=>"Mixed Veggie Basket", "description"=>" All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\n\r\nIf you want a little of everything, then this is the way to go. This Basket includes one of each of the items listed.", "share_items_attributes"=>{"24703b8a21cfda1f5a349c365e52c32b"=>{"_destroy"=>"false", "id"=>"12790", "name"=>"Carrots", "product_sub_category_id"=>"16", "farm_image_id"=>"903", "skus_attributes"=>{"ed3f594dadc22f33a31cd4487ed1da70"=>{"_destroy"=>"false", "id"=>"11406", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Bundle", "price"=>"3.0"}}}, "bc91bb80d269a9c49bb074a8811d649d"=>{"_destroy"=>"false", "id"=>"12791", "name"=>"Beets", "product_sub_category_id"=>"18", "farm_image_id"=>"903", "skus_attributes"=>{"9a26778f218bb059e434bcd86e28d89f"=>{"_destroy"=>"false", "id"=>"11407", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Bundle", "price"=>"3.0"}}}, "f4d55562dec4342d3086ae3b22664bc7"=>{"_destroy"=>"false", "id"=>"12792", "name"=>"Cabbage", "product_sub_category_id"=>"2", "farm_image_id"=>"903", "skus_attributes"=>{"37310327a37e32cba5f33536995c2432"=>{"_destroy"=>"false", "id"=>"11408", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Head(s)", "price"=>"2.0"}}}, "65b0c54a033af79461b6a7e1380f3e20"=>{"_destroy"=>"false", "id"=>"12793", "name"=>"Collard Greens", "product_sub_category_id"=>"73", "farm_image_id"=>"1064", "skus_attributes"=>{"5a55f720bcb14e3950d642ce020a4684"=>{"_destroy"=>"false", "id"=>"11409", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Bunch", "price"=>"3.0"}}}, "b40711b89c5c17b406a801b6c7f80657"=>{"_destroy"=>"false", "id"=>"12794", "name"=>"Parsnip", "product_sub_category_id"=>"18", "farm_image_id"=>"903", "skus_attributes"=>{"7cf9090f31ab829999b697e488a7f1c6"=>{"_destroy"=>"false", "id"=>"11410", "quantity_available"=>"20", "quantity"=>"1", "units"=>"lbs", "price"=>"3.0"}}}, "fa3f3753c934dbd51c5d253dea86f6e6"=>{"_destroy"=>"false", "id"=>"12795", "name"=>"lettuce", "product_sub_category_id"=>"86", "farm_image_id"=>"903", "skus_attributes"=>{"10a10be9244745b3615d5625346074f2"=>{"_destroy"=>"false", "id"=>"11411", "quantity_available"=>"20", "quantity"=>"1", "units"=>"Head", "price"=>"3.0"}}}}, "farm_image_id"=>"903", "recipes_json"=>[""]}, "a88b1aefc77ccc1732ff997c1d7aa794"=>{"_destroy"=>"false", "id"=>"11321", "title"=>"Farm Fresh Eggs", "description"=>" Our eggsare Soy Free and Non GMO, they come from happy chickens that roam around and eat plenty of grass, bugs, and garden veggies. ", "share_items_attributes"=>{"11fe9e78ba047d7bae55226a43f2a8e7"=>{"_destroy"=>"false", "id"=>"12796", "name"=>"Lg Brown Eggs", "product_sub_category_id"=>"46", "farm_image_id"=>"839", "skus_attributes"=>{"26a41e461f49769fbf2d9527a74dc0ed"=>{"_destroy"=>"false", "id"=>"11412", "quantity_available"=>"10", "quantity"=>"1", "units"=>"dozen", "price"=>"5.95"}}}}, "recipes_json"=>["", "{\"attributes\":{},\"flavors\":{\"salty\":0.8333333333333334,\"sour\":0,\"sweet\":0.3333333333333333,\"bitter\":0.6666666666666666,\"meaty\":1,\"piquant\":0},\"rating\":5,\"id\":\"Baked-mini-frittatas-with-broccoli-and-three-cheeses-309412\",\"smallImageUrls\":[\"http://i.yummly.com/Baked-mini-frittatas-with-broccoli-and-three-cheeses-309412-273865.s.jpg\"],\"sourceDisplayName\":\"Kalyn's Kitchen\",\"totalTimeInSeconds\":null,\"ingredients\":[\"low fat cottage cheese\",\"broccoli flowerets\",\"seasoning\",\"grated parmesan cheese\",\"black pepper\",\"eggs\",\"low fat cheddar cheese\"],\"recipeName\":\"Baked Mini-Frittatas with Broccoli and Three Cheeses\"}", "{\"attributes\":{},\"flavors\":null,\"rating\":5,\"id\":\"Best-basic-egg-salad-recipe-306690\",\"smallImageUrls\":[\"http://i.yummly.com/Best-basic-egg-salad-recipe-306690-269974.s.jpg\"],\"sourceDisplayName\":\"Food Republic\",\"totalTimeInSeconds\":null,\"ingredients\":[\"lemon juice\",\"hard-boiled eggs\",\"mayonnaise\",\"dijon mustard\",\"scallion\",\"chives\"],\"recipeName\":\"Best Basic Egg Salad Recipe\"}", "{\"attributes\":{},\"flavors\":null,\"rating\":5,\"id\":\"Broccoli-cheddar-scramble-recipe-306299\",\"smallImageUrls\":[\"http://i.yummly.com/Broccoli-cheddar-scramble-recipe-306299-269651.s.jpg\"],\"sourceDisplayName\":\"Food Republic\",\"totalTimeInSeconds\":null,\"ingredients\":[\"large eggs\",\"whole milk\",\"broccoli\",\"sharp cheddar cheese\",\"butter\"],\"recipeName\":\"Broccoli Cheddar Scramble Recipe\"}"]}, "fbbf9101167d6771258f2434c57f1c5d"=>{"_destroy"=>"false", "id"=>"11308", "title"=>"Mixed Lettuce", "description"=>" All of our produce is grow using sustainable methods. Which means we don't use any chemical pesticides, herbicides, or fertilizers but we have chose not to get \"Organically Certified\".\r\nThis is a mix of red and green lettuce. It is great for salads and sandwiches.", "share_items_attributes"=>{"abbad6c3e96c59ccaafbd38f2930ac1a"=>{"_destroy"=>"false", "id"=>"12778", "name"=>"lettuce", "product_sub_category_id"=>"86", "farm_image_id"=>"903", "skus_attributes"=>{"2c6d39324346118d0e735428e562a0e3"=>{"_destroy"=>"false", "id"=>"11385", "quantity_available"=>"50", "quantity"=>"1", "units"=>"Head", "price"=>"3.45"}}}}, "recipes_json"=>[""]}, "b5237d857214a3f2a337efc8ef622194"=>{"_destroy"=>"false", "id"=>"11301", "title"=>"T-Bone Steak", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. These T-Bones are 1 1/4\" thick they are big and juicy, there is two 18oz steaks per pack . They are great on the grill.", "share_items_attributes"=>{"8d5d792778d6ef77058281addc6fb833"=>{"_destroy"=>"false", "id"=>"12771", "name"=>"T-Bone", "product_sub_category_id"=>"34", "farm_image_id"=>"977", "skus_attributes"=>{"4f66a16bf9a2ee9f56dc398d9e532864"=>{"_destroy"=>"false", "id"=>"11370", "quantity_available"=>"1", "quantity"=>"1.86", "units"=>"lbs", "price"=>"17.95"}, "8844a13c9819d11a912e6bcec9451652"=>{"_destroy"=>"false", "id"=>"11371", "quantity_available"=>"1", "quantity"=>"1.92", "units"=>"lbs", "price"=>"17.95"}}}}, "recipes_json"=>[""]}, "609f830480bcb0ea949fa4a70cf240c1"=>{"_destroy"=>"false", "id"=>"11319", "title"=>"Boneless Rib-Eye Steak", "description"=>" Our beef is totally grass-fed. No hormones, antibiotics or steroids. This package of amazing steaks includes two 9 oz. rib-eyes, cut 1 1/4'' inches think. They are delicious and sure to impress. ", "share_items_attributes"=>{"718261b678873e6bb20b5b3bb768087b"=>{"_destroy"=>"false", "id"=>"12789", "name"=>"Beef Rib-eye", "product_sub_category_id"=>"34", "farm_image_id"=>"966", "skus_attributes"=>{"4368ff5674992e40d69c43e04a268dbc"=>{"_destroy"=>"false", "id"=>"11403", "quantity_available"=>"1", "quantity"=>"1.23", "units"=>"lbs", "price"=>"21.95"}, "b021b549d43af032b888cacf950a7b92"=>{"_destroy"=>"false", "id"=>"11404", "quantity_available"=>"1", "quantity"=>"1.24", "units"=>"lbs", "price"=>"21.95"}, "04f0382cecea9a02a7cc29689784cf21"=>{"_destroy"=>"false", "id"=>"11405", "quantity_available"=>"1", "quantity"=>"1.28", "units"=>"lbs", "price"=>"21.95"}}}}, "recipes_json"=>[""]}, "6704e10e07c7c9753c016ea547c40669"=>{"_destroy"=>"false", "id"=>"11306", "title"=>"Pork Fat (Fresh lard)", "description"=>" This is the pure pork fat, which you cut up and render to make lard for frying or baking. It is much better for you than vegetable oil. ", "share_items_attributes"=>{"af49d7c602a8f3b1203d1717cc13216d"=>{"_destroy"=>"false", "id"=>"12776", "name"=>"Lard", "product_sub_category_id"=>"40", "farm_image_id"=>"1038", "skus_attributes"=>{"da5e93b8ffc518e5e1a2d4a7d62078b8"=>{"_destroy"=>"false", "id"=>"11381", "quantity_available"=>"1", "quantity"=>"3.59", "units"=>"lbs", "price"=>"1.99"}, "584ac6145ed4d9bcfbabf9f0a76524d5"=>{"_destroy"=>"false", "id"=>"11382", "quantity_available"=>"1", "quantity"=>"3.7", "units"=>"lbs", "price"=>"1.99"}, "5fba56ef7505980bb47d4946dc42188f"=>{"_destroy"=>"false", "id"=>"11383", "quantity_available"=>"1", "quantity"=>"2.91", "units"=>"lbs", "price"=>"1.99"}}}}, "recipes_json"=>[""]}}, "validation_scope"=>"preview"}, "id"=>"1287"}
User Load (61.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3178 LIMIT 1
Geokit is using the domain: localhost
AdminUser Load (0.9ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" IN (0, 2, 0) LIMIT 1
SQL (252.3ms) UPDATE "users" SET "last_login_at" = '2014-05-20 13:42:41.565088' WHERE "users"."id" = 3178
Farm Load (14.2ms) SELECT "farms".* FROM "farms" WHERE "farms"."user_id" = 3178 AND "farms"."status" = 'approved' LIMIT 1
Farm Load (1.0ms) SELECT "farms".* FROM "farms" WHERE "farms"."status" = 'approved' AND "farms"."user_id" = 3178 LIMIT 1
Delivery Load (36.9ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."farm_id" = 82 AND "deliveries"."id" = $1 LIMIT 1 [["id", "1287"]]
Farm Exists (0.5ms) SELECT 1 AS one FROM "farms" WHERE (("farms"."user_id" = 3178 AND "farms"."status" = 'approved')) LIMIT 1
(0.2ms) BEGIN
Share Load (2.1ms) SELECT "shares".* FROM "shares" WHERE "shares"."delivery_id" = 1287 AND "shares"."id" IN (11300, 11302, 11303, 11304, 11305, 11309, 11310, 11311, 11307, 11312, 11313, 11314, 11315, 11316, 11317, 11318, 11320, 11321, 11308, 11301, 11319, 11306)
ShareItem Load (1.9ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11300 AND "share_items"."id" IN (12770)
Sku Load (1.1ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12770 AND "skus"."id" IN (11366, 11367, 11368, 11369)
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11302 AND "share_items"."id" IN (12772)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12772 AND "skus"."id" IN (11372)
ShareItem Load (0.8ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11303 AND "share_items"."id" IN (12773)
Sku Load (0.8ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12773 AND "skus"."id" IN (11373, 11374)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11304 AND "share_items"."id" IN (12774)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12774 AND "skus"."id" IN (11375, 11376, 11377, 11378)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11305 AND "share_items"."id" IN (12775)
Sku Load (0.6ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12775 AND "skus"."id" IN (11379, 11380)
ShareItem Load (0.9ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11309 AND "share_items"."id" IN (12779)
Sku Load (1.2ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12779 AND "skus"."id" IN (11386)
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11310 AND "share_items"."id" IN (12780)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12780 AND "skus"."id" IN (11387)
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11311 AND "share_items"."id" IN (12781)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12781 AND "skus"."id" IN (11388)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11307 AND "share_items"."id" IN (12777)
Sku Load (0.8ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12777 AND "skus"."id" IN (11384)
ShareItem Load (1.0ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11312 AND "share_items"."id" IN (12782)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12782 AND "skus"."id" IN (11389)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11313 AND "share_items"."id" IN (12783)
Sku Load (0.6ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12783 AND "skus"."id" IN (11390, 11391, 11392)
ShareItem Load (0.6ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11314 AND "share_items"."id" IN (12784)
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12784 AND "skus"."id" IN (11393)
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11315 AND "share_items"."id" IN (12785)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12785 AND "skus"."id" IN (11394, 11395)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11316 AND "share_items"."id" IN (12786)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12786 AND "skus"."id" IN (11396)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11317 AND "share_items"."id" IN (12787)
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12787 AND "skus"."id" IN (11397, 11398)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11318 AND "share_items"."id" IN (12788)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12788 AND "skus"."id" IN (11399, 11400, 11401, 11402)
ShareItem Load (0.7ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11320 AND "share_items"."id" IN (12790, 12791, 12792, 12793, 12794, 12795)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12790 AND "skus"."id" IN (11406)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12791 AND "skus"."id" IN (11407)
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12792 AND "skus"."id" IN (11408)
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12793 AND "skus"."id" IN (11409)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12794 AND "skus"."id" IN (11410)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12795 AND "skus"."id" IN (11411)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11321 AND "share_items"."id" IN (12796)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12796 AND "skus"."id" IN (11412)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11308 AND "share_items"."id" IN (12778)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12778 AND "skus"."id" IN (11385)
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11301 AND "share_items"."id" IN (12771)
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12771 AND "skus"."id" IN (11370, 11371)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11319 AND "share_items"."id" IN (12789)
Sku Load (0.7ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12789 AND "skus"."id" IN (11403, 11404, 11405)
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11306 AND "share_items"."id" IN (12776)
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12776 AND "skus"."id" IN (11381, 11382, 11383)
Stop Load (0.9ms) SELECT "stops".* FROM "stops" WHERE "stops"."delivery_id" = 1287 LIMIT 1
DropOff Load (1.5ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 161 LIMIT 1
ZipCode Load (6.8ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78727' LIMIT 1
Share Load (1.2ms) SELECT "shares".* FROM "shares" WHERE "shares"."delivery_id" = 1287
Stop Load (0.6ms) SELECT "stops".* FROM "stops" WHERE "stops"."delivery_id" = 1287
Farm Load (1.0ms) SELECT "farms".* FROM "farms" WHERE "farms"."id" = 82 LIMIT 1
CACHE (0.0ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 161 LIMIT 1
CACHE (0.0ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78727' LIMIT 1
Stop Exists (8.2ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 161 AND "stops"."start" = '2014-05-22 17:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3963) LIMIT 1
DropOff Load (0.6ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 208 LIMIT 1
ZipCode Load (0.7ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78758' LIMIT 1
Stop Exists (1.1ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 208 AND "stops"."start" = '2014-05-22 18:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3964) LIMIT 1
DropOff Load (0.6ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 137 LIMIT 1
CACHE (0.0ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78758' LIMIT 1
Stop Exists (0.9ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 137 AND "stops"."start" = '2014-05-22 18:30:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3965) LIMIT 1
DropOff Load (0.6ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 207 LIMIT 1
CACHE (0.0ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78758' LIMIT 1
Stop Exists (1.9ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 207 AND "stops"."start" = '2014-05-22 19:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3966) LIMIT 1
DropOff Load (0.9ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 218 LIMIT 1
ZipCode Load (0.6ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78749' LIMIT 1
Stop Exists (1.1ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 218 AND "stops"."start" = '2014-05-22 20:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3967) LIMIT 1
DropOff Load (0.6ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 176 LIMIT 1
ZipCode Load (0.4ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78729' LIMIT 1
Stop Exists (1.0ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 176 AND "stops"."start" = '2014-05-22 21:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3968) LIMIT 1
DropOff Load (1.1ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 112 LIMIT 1
ZipCode Load (0.6ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78681' LIMIT 1
Stop Exists (1.8ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 112 AND "stops"."start" = '2014-05-22 22:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3969) LIMIT 1
DropOff Load (0.7ms) SELECT "drop_offs".* FROM "drop_offs" WHERE "drop_offs"."id" = 219 LIMIT 1
ZipCode Load (0.5ms) SELECT "zip_codes".* FROM "zip_codes" WHERE "zip_codes"."zip" = '78664' LIMIT 1
Stop Exists (1.0ms) SELECT 1 AS one FROM "stops" INNER JOIN "deliveries" ON "stops"."delivery_id" = "deliveries"."id" WHERE "deliveries"."farm_id" = 82 AND (("stops"."drop_off_id" = 219 AND "stops"."start" = '2014-05-22 23:00:00.000000')) AND (stops.id IS NOT NULL) AND (stops.id != 3970) LIMIT 1
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11300
ShareItem Load (34.2ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11302
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11303
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11304
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11305
ShareItem Load (0.6ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11309
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11310
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11311
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11307
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11312
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11313
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11314
ShareItem Load (0.7ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11315
ShareItem Load (0.7ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11316
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11317
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11318
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11320
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11321
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11308
ShareItem Load (0.4ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11301
ShareItem Load (0.5ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11319
ShareItem Load (0.6ms) SELECT "share_items".* FROM "share_items" WHERE "share_items"."share_id" = 11306
Sku Load (4.7ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12770
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12772
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12773
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12774
Sku Load (0.9ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12775
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12779
Sku Load (0.6ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12780
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12781
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12777
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12782
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12783
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12784
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12785
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12786
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12787
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12788
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12790
Sku Load (0.3ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12791
Sku Load (0.7ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12792
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12793
Sku Load (0.3ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12794
Sku Load (0.7ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12795
Sku Load (0.5ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12796
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12778
Sku Load (0.3ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12771
Sku Load (0.4ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12789
Sku Load (0.6ms) SELECT "skus".* FROM "skus" WHERE "skus"."share_item_id" = 12776
(1.8ms) UPDATE "deliveries" SET "trigger" = 151.0, "updated_at" = '2014-05-20 13:42:43.214109' WHERE "deliveries"."id" = 1287
SQL (89.1ms) UPDATE "shares" SET "updated_at" = '2014-05-20 13:42:43.219378' WHERE "shares"."delivery_id" = 1287
(0.9ms) COMMIT
Redirected to http://localhost:3000/merchant_center/deliveries/1287/preview
Completed 302 Found in 2035ms (ActiveRecord: 609.5ms)
class Share < ActiveRecord::Base
# ==============
# = Attributes =
# ==============
@@accessible_attributes = %w(farm_image_ids farm_image_id title recipes_json copy_share_id remove_image share_pictures_attributes mark_purchases_as_processed image qq_image quantity trigger description cutoff_offset price share_items_attributes submit_for_approval recipes image_ids wizard allowed_time)
attr_accessible *@@accessible_attributes
attr_accessible *@@accessible_attributes, :farm_id, :status, :cutoff, :time, :end, :delivery_id, :as => :admin
serialize :cache, ActiveRecord::Coders::Hstore
serialize :recipes, Array
serialize :farm_image_ids
# ================
# = Associations =
# ================
belongs_to :farm
belongs_to :farm_image
belongs_to :delivery, :touch => true
has_many :stops, :through => :delivery
has_one :promoted_share
has_one :payment
has_many :stops, :through => :delivery
has_many :share_pictures, :dependent => :destroy
has_many :comments, :dependent => :destroy, :as => :target
has_many :carts, :through => :purchases, :uniq => true
has_many :share_items, :dependent => :destroy, :inverse_of => :share
with_options :through => :share_items do |i|
i.has_many :farm_images
i.has_many :skus
i.has_many :purchases
end
alias_method :all_purchases, :purchases
def purchases
all_purchases.find_for_share
end
has_one :share_item
has_one :sku, :through => :share_item
has_one :sub_category, :through => :share_item
has_many :sub_categories, :through => :share_items
has_many :categories, :through => :sub_categories, :class_name => "ProductCategory", :source => :product_category
has_one :category, :through => :share_item
has_one :share_item_farm_image, :through => :share_item, :source => :farm_image
has_one :discount_coverage, :through => :delivery
has_many :disputes, :through => :purchases
# => overwrite the getter to skip the purchases default scope (cancelled_at => nil)
def disputes
Dispute.joins(:share).where('purchases.share_id' => id)
end
has_many :drop_off_subscriptions, :through => :drop_offs
has_many :subscribers, :through => :drop_off_subscriptions, :source => :user
has_many :customers, :through => :purchases, :source => :user
has_many :users, :through => :purchases
has_many :drop_offs, :through => :delivery
has_one :farm, :through => :delivery
has_one :farmer, :through => :farm, :source => :user
has_one :grouped_payment, :through => :payment
def farm_images
farm.farm_images.where(:id => farm_image_ids)
end
def farmer_id; farmer.try(:id); end
def delivered_purchases; purchases.where{picked_up_at.not_eq(nil)}; end
def non_delivered_purchases; purchases.where(:picked_up_at => nil); end
# =====================
# = Nested Attributes =
# =====================
accepts_nested_attributes_for :share_items, :allow_destroy => true, :reject_if => proc { |obj| obj['name'].blank? }
accepts_nested_attributes_for :share_pictures, :allow_destroy => true, :reject_if => proc { |obj| obj.blank? }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment