Smartcode smartcode

View Net::HTTPRetriableError.rb
1 2 3 4 5 6 7 8 9 10
/Users/.../.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:2632:in `error!'
oauth (0.4.5) lib/oauth/consumer.rb:216:in `token_request'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:18:in `get_access_token'
omniauth-oauth (1.0.1) lib/omniauth/strategies/oauth.rb:57:in `callback_phase'
omniauth (1.1.0) lib/omniauth/strategy.rb:219:in `callback_call'
omniauth (1.1.0) lib/omniauth/strategy.rb:175:in `call!'
omniauth (1.1.0) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.0) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.0) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.0) lib/omniauth/strategy.rb:177:in `call!'
View gist:1463406
1 2 3 4 5
def around_api_response(api_template)
Rails.cache.fetch("api_response_#{self.class.to_s}_#{id}_#{api_template.to_s}", :expires_in => 1.hour) do
yield
end
end
View gist:1392164
1 2 3 4 5 6 7 8 9 10
@import "twitter/bootstrap";
 
// -------------------------------
 
// Links
@linkColor: #8b59c2;
@linkColorHover: darken(@linkColor, 10);
// Grays
@black: #000;
View gist:1373970
1 2 3 4 5 6 7 8 9 10
NameError (uninitialized constant Delayed):
carrierwave_backgrounder (0.0.5) lib/backgrounder/orm/base.rb:53:in `enqueue_file_background_job'
activesupport (3.1.1) lib/active_support/callbacks.rb:436:in `_run_save_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.1) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.1) lib/active_record/persistence.rb:57:in `save!'
activerecord (3.1.1) lib/active_record/validations.rb:56:in `save!'
activerecord (3.1.1) lib/active_record/attribute_methods/dirty.rb:33:in `save!'
activerecord (3.1.1) lib/active_record/transactions.rb:246:in `block in save!'
activerecord (3.1.1) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
View gist:1334969
1 2 3 4 5 6 7 8 9
NoMethodError: private method `write_uploader' called for #<Item:0x007fd71682aa60>
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activemodel-3.1.1/lib/active_model/attribute_methods.rb:385:in `method_missing'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_record/attribute_methods.rb:60:in `method_missing'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/carrierwave-0.5.7/lib/carrierwave/mount.rb:299:in `write_identifier'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/carrierwave-0.5.7/lib/carrierwave/mount.rb:229:in `write_file_identifier'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:413:in `_run_save_callbacks'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_
Something went wrong with that request. Please try again.