Created
April 1, 2011 19:28
-
-
Save craigmartin/898705 to your computer and use it in GitHub Desktop.
thrown from dm-core/model/relationship.rb and dm-core/model/property.rb -- undefined method `update_or_create' for User:Class
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
NoMethodError at /after_login | |
undefined method `update_or_create' for User:Class | |
file: relationship.rb location: method_missing line: 378 | |
BACKTRACE | |
(condense) | |
JUMP TO: GET POST COOKIES ENV | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/dm-core-1.1.0/lib/dm-core/model/relationship.rb in method_missing | |
super | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/dm-core-1.1.0/lib/dm-core/model/property.rb in method_missing | |
super | |
monsoc.rb in block in <main> | |
unless User.update_or_create({ :nickname => profile["identifier"].hash.to_s(36), :email => profile["email"], :photo_url => photo, :provider => profile["provider"]}) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in call | |
proc { unbound_method.bind(self).call }, | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in compile! | |
proc { unbound_method.bind(self).call }, | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in instance_eval | |
throw :halt, instance_eval(&block) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in route_eval | |
throw :halt, instance_eval(&block) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block (2 levels) in route! | |
route_eval(&block) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in process_route | |
yield | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in catch | |
catch(:pass) do | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in process_route | |
catch(:pass) do | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in route! | |
pass_block = process_route(pattern, keys, conditions) do | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in each | |
routes.each do |pattern, keys, conditions, block| | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in route! | |
routes.each do |pattern, keys, conditions, block| | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in dispatch! | |
route! | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in call! | |
invoke { dispatch! } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in instance_eval | |
res = catch(:halt) { instance_eval(&block) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in invoke | |
res = catch(:halt) { instance_eval(&block) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in catch | |
res = catch(:halt) { instance_eval(&block) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in invoke | |
res = catch(:halt) { instance_eval(&block) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in call! | |
invoke { dispatch! } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in call | |
dup.call!(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-flash-0.1.1/lib/rack/flash.rb in call | |
res = @app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/showexceptions.rb in call | |
@app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-1.2.2/lib/rack/methodoverride.rb in call | |
@app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-1.2.2/lib/rack/commonlogger.rb in call | |
status, header, body = @app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-1.2.2/lib/rack/session/cookie.rb in call | |
status, headers, body = @app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in block in call | |
synchronize { prototype.call(env) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in synchronize | |
yield | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/sinatra-1.2.1/lib/sinatra/base.rb in call | |
synchronize { prototype.call(env) } | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-1.2.2/lib/rack/content_length.rb in call | |
status, headers, body = @app.call(env) | |
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/rack-1.2.2/lib/rack/handler/webrick.rb in service | |
status, headers, body = @app.call(env) | |
/usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb in service | |
si.service(req, res) | |
/usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb in run | |
server.service(req, res) | |
/usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/server.rb in block in start_thread | |
block ? block.call(sock) : run(sock) | |
GET | |
Variable Value | |
token | |
"03db0c7502a0c28d487182f2c11d2b88c8ed7115" | |
POST | |
Variable Value | |
token | |
"03db0c7502a0c28d487182f2c11d2b88c8ed7115" | |
COOKIES | |
Variable Value | |
rack.session | |
"BAh7BjoOX19GTEFTSF9fewA=\n--aa97c5b0f3c9d0966867930ab84caa21824c1a18" | |
Rack ENV | |
Variable Value | |
CONTENT_LENGTH | |
46 | |
CONTENT_TYPE | |
application/x-www-form-urlencoded | |
GATEWAY_INTERFACE | |
CGI/1.1 | |
HTTP_ACCEPT | |
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | |
HTTP_ACCEPT_CHARSET | |
ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
HTTP_ACCEPT_ENCODING | |
gzip,deflate,sdch | |
HTTP_ACCEPT_LANGUAGE | |
en-US,en;q=0.8 | |
HTTP_CACHE_CONTROL | |
max-age=0 | |
HTTP_CONNECTION | |
keep-alive | |
HTTP_COOKIE | |
rack.session=BAh7BjoOX19GTEFTSF9fewA%3D%0A--aa97c5b0f3c9d0966867930ab84caa21824c1a18 | |
HTTP_HOST | |
orderfork.com:4567 | |
HTTP_ORIGIN | |
http://bnb.rpxnow.com | |
HTTP_REFERER | |
http://bnb.rpxnow.com/redirect?loc=7d1028ac69f8eb7172cac4c8669cd0f6386c1ac5 | |
HTTP_USER_AGENT | |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16 | |
HTTP_VERSION | |
HTTP/1.1 | |
PATH_INFO | |
/after_login | |
QUERY_STRING | |
REMOTE_ADDR | |
24.21.73.209 | |
REMOTE_HOST | |
c-24-21-73-209.hsd1.wa.comcast.net | |
REQUEST_METHOD | |
POST | |
REQUEST_PATH | |
/ | |
REQUEST_URI | |
http://orderfork.com:4567/after_login | |
SCRIPT_NAME | |
SERVER_NAME | |
orderfork.com | |
SERVER_PORT | |
4567 | |
SERVER_PROTOCOL | |
HTTP/1.1 | |
SERVER_SOFTWARE | |
WEBrick/1.3.1 (Ruby/1.9.2/2010-12-25) | |
rack.errors | |
#<Object:0xa5c4d38> | |
rack.input | |
#<StringIO:0xa8e7a4c> | |
rack.multiprocess | |
false | |
rack.multithread | |
true | |
rack.request.cookie_hash | |
{"rack.session"=>"BAh7BjoOX19GTEFTSF9fewA=\n--aa97c5b0f3c9d0966867930ab84caa21824c1a18"} | |
rack.request.cookie_string | |
rack.session=BAh7BjoOX19GTEFTSF9fewA%3D%0A--aa97c5b0f3c9d0966867930ab84caa21824c1a18 | |
rack.request.form_hash | |
{"token"=>"03db0c7502a0c28d487182f2c11d2b88c8ed7115"} | |
rack.request.form_input | |
#<StringIO:0xa8e7a4c> | |
rack.request.form_vars | |
token=03db0c7502a0c28d487182f2c11d2b88c8ed7115 | |
rack.request.query_hash | |
{"token"=>"03db0c7502a0c28d487182f2c11d2b88c8ed7115"} | |
rack.request.query_string | |
rack.run_once | |
false | |
rack.session | |
{:__FLASH__=>{}} | |
rack.session.options | |
{:domain=>nil, :path=>"/", :expire_after=>nil, :secret=>"17fe78c988ea262d706ae3391b455c30cdec9bfdc37f98a89a9460b303fac830"} | |
rack.url_scheme | |
http | |
rack.version | |
[1, 1] | |
sinatra.error | |
#<NoMethodError: undefined method `update_or_create' for User:Class> | |
x-rack.flash | |
#<FlashHash @values={} @cache={}> | |
You're seeing this error because you have enabled the show_exceptions setting. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment