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
# t is a Tag object | |
def campaigns | |
campaigns = Campaign.by_account(self.account_id). | |
select("distinct campaigns.id, campaigns.*") | |
end | |
# Normal query to find the collection | |
[2] pry(main)> t.campaigns |
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
init: | |
BUILD FAILED | |
/home/cha1tanya/Projects/sources/jruby/build.xml:99: /home/cha1tanya/Projects/sources/jruby/build_lib does not exist. | |
Total time: 0 seconds |
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
<Module> | |
<ModulePrefs title="Nurture"/> | |
<Content type="html"> | |
<![CDATA[ | |
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script> | |
google.load("gdata", "1.x"); | |
function add_to_nurture(contact) { | |
var contactsFeedUri = 'https://www.google.com/m8/feeds/contacts/default/full'; |
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
<Module> | |
<ModulePrefs title="Nurture Contacts"/> | |
<Content type="url" href="https://www.google.com/contacts" target="_blank"/> | |
</Module> |
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
[rails4-demo]{13-07-22 19:53} | |
(⨍)rails -v ruby-2.0.0-p247 | |
Rails 4.0.0 | |
[rails4-demo]{13-07-22 19:55} | |
(⨍)rake about ruby-2.0.0-p247 | |
About your application's environment | |
Ruby version 2.0.0 (x86_64-linux) | |
RubyGems version 2.0.3 | |
Rack version 1.5 | |
Rails version 4.0.0 |
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
[test-for-doc]{13-07-22 19:54} | |
(⨍)rails -v ruby-2.0.0-p247 | |
Rails 4.1.0.beta | |
[test-for-doc]{13-07-22 19:54} | |
(⨍)rake about ruby-2.0.0-p247 | |
About your application's environment | |
Ruby version 2.0.0-p247 (x86_64-linux) | |
RubyGems version 2.0.3 | |
Rack version 1.5 | |
Rails version 4.1.0.beta |
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
class Time | |
def self.at_hour(hour) | |
Time.now(2013, nil, nil, hour) | |
end | |
end |
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
> RAILS_ENV=production rake assets:precompile | |
rake aborted! | |
FATAL: database "test_app" does not exist | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in `initialize' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in `new' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in `connect' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:542:in `initialize' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@nurture2/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection' |
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 'ripper' | |
require 'pp' | |
code =<<STR | |
10.times do |n| | |
puts n | |
end | |
STR | |
puts code |
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
You are using WebMock 1.13.0. VCR is known to work with WebMock >= 1.8.0, < 1.12. It may not work with this version. | |
rake aborted! | |
undefined method `context' for IssueTest:Class | |
/home/cha1tanya/Projects/sources/codetriage/test/unit/issue_test.rb:38:in `<class:IssueTest>' | |
/home/cha1tanya/Projects/sources/codetriage/test/unit/issue_test.rb:3:in `<top (required)>' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@codetriage/gems/activesupport-4.1.0.beta1/lib/active_support/dependencies.rb:247:in `require' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@codetriage/gems/activesupport-4.1.0.beta1/lib/active_support/dependencies.rb:247:in `block in require' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@codetriage/gems/activesupport-4.1.0.beta1/lib/active_support/dependencies.rb:232:in `load_dependency' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@codetriage/gems/activesupport-4.1.0.beta1/lib/active_support/dependencies.rb:247:in `require' | |
/home/cha1tanya/.rvm/gems/ruby-2.0.0-p247@codetriage/gems/railties-4.1.0.beta1/lib/rails/test_unit/ |