Skip to content

Instantly share code, notes, and snippets.

AJ cypherjones

Block or report user

Report or block cypherjones

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmp
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDI93f/U0D65FtqrdkcKKXqs2Gc7M48vULav4KSIYYEywlKoZ6km5BS5gglH4eCH1ggBuOT849pwqCi7KbnofCgfZA8EcpwOK1leL/t9cAAq/hqk1hsOvX/+cbw9OrRDf8pgx853ZrkG0TxCBqss87jVcDz3pqnj5UdH+3EVl7rWwKz8bX/mkhPd/Xl/kt+DlZnrleLgeB7fEn9gKng0aOMWgkst6e1/oPQ6BIh8/IO/TspbfHNTAIHRnS0paefu8dBQpkSqcjNTp/amrH16UcFIOoUuKVSHHMq8FhPcx5e5u9atrm1oBRWuSImTDmDgk0YAGXlE9LO02P8is+3ZS++By/XD6bYrpMxfGZ7Ed0Qa+OKNCmv9rLGS35fm8midRaVvVpbeRdD+3nw8R3c+GEpTSEtbZwGGY5bGLuNjQqWZmxK32TEnog516136xigyoeky1F5ugIq8mYkkDA2j0FRvolBPwYQ7w+v0U5lfHDEghNtkbJgpYA/Ic2qghTZUFEMVSC8Kk68hsr8Rgq2X5ldbb6n1Nf6ET7LbXF5cZO1rezpiLkadUheDHdK0huUNpsdUae5/3TFp6xUoj/GMqK6qefQQBbWH6rw2W/0xWXqrFs9HO5D/gZwBHXAJTdQT3mds+/yvymoOSD+vqBS/hGM0lY0ToFd4fCxDiPDRO9ELw== aj@beefymarketing.com
View share.php
<?php
/**
* Template Name: Share pop
*/
get_header();
$post_t_ids = array();
/*
View gist:18a547f558cc0211b5cd
1) VideosController POST search sets @results with an authenticated user
Failure/Error: expect(assigns(:results)).to eql([futurama])
expected: [#<Video id: 1, title: "Futurama", description: "Molestiae sit vel distinctio aliquam mollitia. Exc...", small_cover_url: nil, large_cover_url: nil, created_at: "2014-08-01 03:42:45", updated_at: "2014-08-01 03:42:45", category_id: nil>]
got: #<ActiveRecord::Relation [#<Video id: 1, title: "Futurama", description: "Molestiae sit vel distinctio aliquam mollitia. Exc...", small_cover_url: nil, large_cover_url: nil, created_at: "2014-08-01 03:42:45", updated_at: "2014-08-01 03:42:45", category_id: nil>]>
(compared using eql?)
Diff:
@cypherjones
cypherjones / gist:f07a3bc497a5001b9f06
Created Jun 17, 2014
rspec error: undefined method...
View gist:f07a3bc497a5001b9f06
➜ myflix git:(mod0) ✗ rspec
..FFF
Failures:
1) Video
Failure/Error: it { should belongs_to(:category) }
NoMethodError:
undefined method `belongs_to' for #<RSpec::ExampleGroups::Video_2:0x000001068469d8>
# ./spec/models/video_spec.rb:4:in `block (2 levels) in <top (required)>'
View Error Duplicate Column
rake aborted!
An error has occurred, this and all later migrations canceled:
PG::Error: ERROR: column "created_at" of relation "posts" already exists
: ALTER TABLE "posts" ADD COLUMN "created_at" timestamp/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `exec'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:425:in `block in log'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
You can’t perform that action at this time.