I hereby claim:
- I am samgimbel on github.
- I am samgimbel (https://keybase.io/samgimbel) on keybase.
- I have a public key ASBA3ewzvxniYpbkFohGT5A-qoagiII8jDV9k50A-pUSmQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
2013-11-15T01:17:52.254231+00:00 heroku[router]: at=info method=GET path=/resque host=www.brewcrate.com fwd="69.119.232.26" dyno=web.1 connect=3ms service=15ms status=302 bytes=0 | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: Redis::CannotConnectError - Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED): | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:278:in `rescue in establish_connection' | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:273:in `establish_connection' | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:69:in `connect' | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:292:in `ensure_connected' | |
2013-11-15T01:17:52.303645+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:179:in `block in process' | |
2013-11-1 |
existing_cart_item = self.cart_items.where( | |
:cartable_id => item_attributes[:product_id], | |
:cartable_type => item_attributes[:product_type] | |
).first | |
if existing_cart_item | |
existing_cart_item.quantity += (item_attributes[:quantity] || 1) | |
existing_cart_item.save! | |
else | |
cart_items.create!(item_attributes) |
Started POST "/checkout/complete" for 127.0.0.1 at 2013-11-10 22:22:45 -0500 | |
Processing by CheckoutController#complete as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hy/F1EMXQ8ktOfvdmmD8tt+ktlKCkZMXUkJj9daF6G4=", "order"=>{"order_addresses_attributes"=>{"0"=>{"address_id"=>"", "recipient_name"=>"Samuel Gimbel", "line1"=>"416 Bergen Street", "line2"=>"Apartment 1", "city"=>"Brooklyn", "state"=>"NY", "zip_code"=>"11217", "id"=>"", "address_type_id"=>"1"}}, "expire_month"=>"04", "expire_year"=>"2015", "billing_zip_code"=>"12345"}, "stripeToken"=>"tok_2v1KFBIxHPaQA0"} | |
User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 | |
Cart Load (0.2ms) SELECT `carts`.* FROM `carts` WHERE `carts`.`user_id` = 5 LIMIT 1 | |
Cart Load (0.4ms) SELECT `carts`.* FROM `carts` WHERE `carts`.`session_id` = '815c10fbc2a60f1407fbabf663a440e1' LIMIT 1 | |
CartItem Load (0.4ms) SELECT `cart_items`.* FROM `cart_items` WHERE `cart_items`.`cart_id` = 18 | |
(0.1ms) BEGIN | |
Cart |
- flash.each do |name, msg| | |
- if msg.is_a?(String) | |
- if name == "alert" || "danger" | |
- name = "danger" | |
- elsif name == :notice | |
- name = :notice | |
- elsif name == "success" | |
- name = "success" | |
.home_alert{:class => "alert alert-#{name}"} | |
%a.close{"data-dismiss" => "alert"} × |
def self.find_for_facebook_oauth(auth, signed_in_resource=nil) | |
user = User.where(:provider => auth.provider, :uid => auth.uid).first | |
logger.debug "USER IS #{user}" | |
unless user | |
logger.debug "No User, trying to create" | |
user = User.create(name:auth.extra.raw_info.name, | |
provider:auth.provider, | |
uid:auth.uid, | |
email:auth.info.email, | |
password:Devise.friendly_token[0,20], |
%radio | |
%label | |
%input{:type => "radio", :name => "subtype", :id=> "subtype1", :value => "option1"}(checked) 1 Gallon Kit — Monthly | |
%br | |
%input{:type => "radio", :name => "subtype", :id => "subtype2", :value => "option2"} Cancel Subscription |
var html = "<ul><h2>Please Correct The Following Errors:</h2>"; | |
$.each(flashErrors, function(index, h) { | |
$(html).append(" <li> " + h + "</li>"); | |
console.log(html); | |
}); |
Sams-MacBook-Air-4:var samgimbel$ gem install mysql2 | |
Building native extensions. This could take a while... | |
/Users/samgimbel/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:54: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 | |
ERROR: Error installing mysql2: | |
ERROR: Failed to build gem native extension. | |
/Users/samgimbel/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb | |
checking for rb_thread_blocking_region()... yes | |
checking for rb_wait_for_single_fd()... yes | |
checking for rb_hash_dup()... yes |