Skip to content

Instantly share code, notes, and snippets.

View MettaAudio's full-sized avatar

John King MettaAudio

View GitHub Profile
➜ site git:(spree_fetcher) cap deploy
triggering load callbacks
* 2013-08-14 23:57:39 executing `development'
triggering start callbacks for `deploy'
* 2013-08-14 23:57:39 executing `multistage:ensure'
* 2013-08-14 23:57:39 executing `deploy'
* 2013-08-14 23:57:39 executing `deploy:update'
** transaction: start
* 2013-08-14 23:57:39 executing `deploy:update_code'
updating the cached checkout on all servers
@MettaAudio
MettaAudio / NoMethodError
Created November 8, 2011 04:57
Application Trace for undefined method `id' for false:FalseClass use Ajaxful Rating
/Users/John/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/ajaxful-rating-98452cea5145/lib/axr/model.rb:131:in `rate_by'
/Users/John/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/ajaxful-rating-98452cea5145/lib/axr/model.rb:136:in `rated_by?'
/Users/John/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/ajaxful-rating-98452cea5145/lib/axr/model.rb:84:in `rate'
app/controllers/stores_controller.rb:17:in `rate'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.1) lib/active_support/callbacks.rb:425:in `_run__1042218581__process_action__551928510__callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_symlink)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_setup)
* executing `production'
triggering start callbacks for `deploy:migrations'
* executing `multistage:ensure'
* executing `deploy:migrations'
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:MettaAudio/msc-store.git production"
@MettaAudio
MettaAudio / edit.html.erb
Created December 22, 2010 21:23
Form madness
<div style="float:left; width:45%; margin-right:25px">
<h1><%= object.line_item.order.user.email %></h1>
<h2><%= object.line_item.product.name %></h2>
<h2><%= object.line_item.order.id %></h2>
<% object.associated_requests.each do |request| %>
<p>Request on <%= request.created_at.to_date %> and approved on <%= request.approval_date.to_date %></p>
<table class="index">
<tr>
<th>Contest Name</th>
<th>Host name</th>
@MettaAudio
MettaAudio / Return_true.rb
Created December 21, 2010 21:39
Problem child
Order.class_eval do
def has_site_approvals?
line_items.each do |item|
return true if !item.approval.nil? # & !item.approval.approval_date.nil?
end
end
false
end