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
{ | |
"products":[ | |
{ | |
"id":1, | |
"name":"Ruby on Rails Tote", | |
"description":"Numquam provident nihil sint sed assumenda. Fugit facilis illum quos dolorem. Sint velit sint qui et est et delectus nihil. Laborum delectus et vel dolorem.", | |
"price":"15.99", | |
"display_price":"$15.99", | |
"available_on":"2014-02-19T06:07:28.980Z", | |
"slug":"ruby-on-rails-tote", |
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 jquery | |
//= require handlebars | |
//= require ember | |
//= require spree | |
Spree.App = Ember.Application.create() | |
$.ajaxPrefilter (options, originalOptions, jqXHR) -> | |
jqXHR.setRequestHeader('X-Spree-Token', 'fake') |
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
spree_ember (master)⸘ rake teaspoon --trace | |
** Invoke teaspoon (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute teaspoon | |
Starting the Teaspoon server... | |
Thin web server (v1.6.1 codename Death Proof) | |
Maximum connections set to 1024 | |
Listening on 0.0.0.0:63215, CTRL+C to stop | |
Teaspoon running default suite at http://127.0.0.1:63215/teaspoon/default |
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
[09:21:26] <tesmar> oh man the fedex freight API returns success but the rates don't show up on the cart | |
[09:21:33] <tesmar> any idea why freight would not show up? | |
[09:25:14] <@Radar> !8ball | |
[09:25:14] <helpa> Ask Radar. |
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
1) Category scoping cannot see Account B's category | |
Failure/Error: visit forem.category_url(category, subdomain: subdomain) | |
ActiveRecord::RecordNotFound: | |
ActiveRecord::RecordNotFound | |
# /Users/ryanbigg/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/friendly_id-5.0.2/lib/friendly_id/finder_methods.rb:23:in `find' |
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 'devise' | |
class User < ActiveRecord::Base | |
extend Devise::Models | |
# Include default devise modules. Others available are: | |
# :confirmable, :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable | |
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
From: /Users/ryanbigg/Projects/gems/forem/spec/features/permissions/posts_spec.rb @ line 44 : | |
39: | |
40: context "without permission to edit" do | |
41: before do | |
42: sign_in(user) | |
43: User.any_instance.stub(:can_edit_forem_posts?).and_return(false) | |
=> 44: binding.pry | |
45: end | |
46: |
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
well, the answer is that I'm using whatever is packaged for ubuntu 12.04, as is the case with 95% of all the software on our servers | |
ric [11:44 AM] | |
the few exceptions being things like rubies and databases | |
ric [11:45 AM] | |
this is also what everyone else in the world does, which is why it's a very weird question | |
ric [11:46 AM] | |
tell them that as far as I know AOL is still using CentOS 5 which comes with ruby 1.8.5 |
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 Spree | |
module Api | |
class Ability | |
def initialize(user, tokens={}) | |
if tokens[:order] | |
can :read, Spree::Order do |order| | |
order.token == tokens[:order] | |
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
<%= f.fields_for :images do |image_field| %> | |
<% if image_field.object.new_record? %> | |
<%= render 'image_fields', :f => builder %> | |
<% end %> | |
<% end %> |