Skip to content

Instantly share code, notes, and snippets.

View stephanpavlovic's full-sized avatar

Stephan Pavlovic stephanpavlovic

View GitHub Profile
NoMethodError (undefined method `bytesize' for #<RestClient::Payload::Base:0x105636068>):
app/controllers/message/base_controller.rb:29
app/controllers/message/base_controller.rb:28:in `create'
Rendered /Users/stephanpavlovic/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/stephanpavlovic/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1971.9ms)
Rendered /Users/stephanpavlovic/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (2117.9ms)
GIT
remote: git://github.com/thoughtbot/factory_girl.git
revision: 5c88bb058b876107d6d93dd8ac48c5cd46dc566f
specs:
factory_girl (2.0.0.beta1)
GIT
remote: http://github.com/appoxy/aws.git
revision: e4b10f9de5fdf1e99cb3bf33bde96105064071b1
specs:
Started GET "/users/sign_in?fancy=true" for 127.0.0.1 at Tue Oct 26 12:42:58 +0200 2010
Processing by Devise::SessionsController#new as JS
Parameters: {"fancy"=>"true"}
SQL (37.1ms) describe `profiles_ownerships`
Completed in 650ms
ActionView::MissingTemplate (Missing template devise/sessions/new with {:formats=>[:js, :"*/*"], :locale=>[:en, :en], :handlers=>[:erb, :builder, :rjs, :rhtml, :haml, :rxml]} in view paths "/Users/stephanpavlovic/code/eightpitch/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/paypal/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/make_permalink/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/localized_country_select/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/has_uuid/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/haml/app/views", "/Users/stephanpavlovic/code/eightpitch/vendor/plugins/event_calendar/app/views", "/Users/stephanpavlovic/.rvm/gems/ruby-1.8.7-p249/gems/high_vol
Identity added: /Users/stephan-pavlovic/.ssh/id_rsa (/Users/stephan-pavlovic/.ssh/id_rsa)
* executing `deploy:migrations'
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@codebasehq.com:eightpitch/eightpitch/eightpitch.git master"
* executing "if [ -d /var/www/loudsquare/shared/cached-copy ]; then cd /var/www/loudsquare/shared/cached-copy && git fetch -q origin && git reset -q --hard 3039c855c43bfc0d2b5a9d82a24014510ca7781a && git clean -q -d -x -f; else git clone -q git@codebasehq.com:eightpitch/eightpitch/eightpitch.git /var/www/loudsquare/shared/cached-copy && cd /var/www/loudsquare/shared/cached-copy && git checkout -q -b deploy 3039c855c43bfc0d2b5a9d82a24014510ca7781a; fi"
servers: ["178.77.97.81"]
[178.77.97.81] executing command
** [178.77.97.81 :: out] remote: Counting objects: 1
** [178.77.97.81 :: out] remote: Counting objects: 37, done.
PGError: ERROR: relation "cities" does not exist
LINE 4: WHERE a.attrelid = '"cities"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"cities"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
(ActiveRecord::StatementInvalid)
@stephanpavlovic
stephanpavlovic / gist:4259284
Created December 11, 2012 15:22
domain spec
require 'spec_helper'
require_relative '../../../app/domain/geocoder_wrapper'
describe 'GeocoderWrapper' do
describe '.geocode' do
it 'geocodes'
end
describe '.distance' do
it "calculates nothing if params not present" do
0:0:0:0:0:0:0:1%0 - - 29/05/2013:16:58:40 +0200 "POST /splink_sgdb/api/users/login HTTP/1.1" 200 1384
POST /splink_sgdb/api/users/login HTTP/1.1
X-Splinkuser: 0
Host: localhost:8080
Accept: application/json
Content-Length: 53
Content-Type: application/json
X-Splinkapp: 1087e5f7b5d74875a747f3a58813492e
Connection: close
User-Agent: Splink SGDB API client
config.middleware.insert_before(Rack::Runtime, Rack::Rewrite) do
r301 '/tim_schneider', '/tim'
r301 '/jan_kus', '/jan'
r301 '/lars_brillert', '/lars'
r301 '/michael_bumann', '/michael'
r301 '/jakob_hilden', '/jakob'
r301 '/stephan_pavlovic', '/stephan'
r301 '/paul_wittmann', '/paul'
r301 '/max_schulz', '/max'
r301 '/isabell_slowik', '/isa'
<div class='wrapper'>
<div class='box'>Hi</div>
<div class='box'>Hi</div>
<div class='box'>Hi</div>
<div class='box'>Hi</div>
</div>
<div class='wrapper'>
<div class='box'>
Hi
</div>
<div class='box'>Hi</div>
<div class='box'>Hi</div>
<div class='box'>Hi</div>
</div>