Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tal:~/Projects/pierre $ rake routes
:public is no longer used to avoid overloading Module#public, use :public_folder instead
from /Users/tal/.rvm/gems/ruby-1.9.2-p290@pierre/gems/resque-1.19.0/lib/resque/server.rb:12:in `<class:Server>'
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
rake aborted!
stack level too deep
Tasks: TOP => routes => environment
(See full trace by running task with --trace)
tal:~/Projects/pierre $ bundle exec rake routes
:public is no longer used to avoid overloading Module#public, use :public_folder instead
from /Users/tal/.rvm/gems/ruby-1.9.2-p290@pierre/gems/resque-1.19.0/lib/resque/server.rb:12:in `<class:Server>'
/unsubscribe/:token(.:format) {:controller=>"users", :action=>"unsubscribe"}
users POST /users(.:format) {:action=>"create", :controller=>"users"}
new_user GET /users/new(.:format) {:action=>"new", :controller=>"users"}
user GET /users/:id(.:format) {:action=>"show", :controller=>"users"}
admins GET /admins(.:format) {:action=>"index", :controller=>"admins"}
root / {:controller=>"users", :action=>"new"}
/resque {:to=>#<Sinatra::ShowExceptions:0x007fd8a01940d0 @app=#<Rack::Head:0x007fd8a0194350 @app=#<Rack::NullLogger:0x007fd8a01943a0 @app=#<Rack::Protection::FrameOptions:0x007fd8a0194af8 @app=#<Rack::Protection::IPSpoofing:0x007fd8a0194c88 @app=#<Rack::Protection::JsonCsrf:0x007fd8a0195070 @app=#<Rack::Protection::PathTraversal:0x007fd8a0195160 @app=#<Rack::Protection::XSSHeader:0x007fd8a0195480 @app=#<Rack::Auth::Basic:0x007fd8a0196290 @app=#<Resque::Server:0x007fd8a0196498 @default_layout=:layout, @app=nil, @template_cache=#<Tilt::Cache:0x007fd8a0196470 @cache={}>>, @realm=nil, @authenticator=#<Proc:0x007fd89d327440@/Users/tal/Projects/pierre/config/initializers/resque.rb:8>>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :xss_mode=>:block, :except=>[:escaped_params, :session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:escaped_params, :session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:escaped_params, :session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:escaped_params, :session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :xss_mode=>:block, :frame_options=>:sameorigin, :except=>[:escaped_params, :session_hijacking, :remote_token]}>>>, @template=#<ERB:0x007fd8a01940a8 @safe_level=nil, @src="#coding:US-ASCII\n_erbout = ''; _erbout.concat \"<!DOCTYPE html>\\n<html>\\n<head>\\n <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\"/>\\n <title>\"\n\n\n\n; _erbout.concat((h exception.class ).to_s); _erbout.concat \" at \"; _erbout.concat((h path ).to_s); _erbout.concat \"</title>\\n\\n <script type=\\\"text/javascript\\\">\\n //<!--\\n function toggle(id) {\\n var pre = document.getElementById(\\\"pre-\\\" + id);\\n var post = document.getElementById(\\\"post-\\\" + id);\\n var context = document.getElementById(\\\"context-\\\" + id);\\n\\n if (pre.style.display == 'block') {\\n pre.style.display = 'none';\\n post.style.display = 'none';\\n context.style.background = \\\"none\\\";\\n } else {\\n pre.style.display = 'block';\\n post.style.display = 'block';\\n context.style.background = \\\"#fffed9\\\";\\n }\\n }\\n\\n function toggleBacktrace(){\\n var bt = document.getElementById(\\\"backtrace\\\");\\n var toggler = document.getElementById(\\\"expando\\\");\\n\\n if (bt.className == 'condensed') {\\n bt.className = 'expanded';\\n toggler.innerHTML = \\\"(condense)\\\";\\n } else {\\n bt.className = 'condensed';\\n toggler.innerHTML = \\\"(expand)\\\";\\n }\\n }\\n //-->\\n </script>\\n\\n<style type=\\\"text/css\\\" media=\\\"screen\\\">\\n * {margin: 0; padding: 0; border: 0; outline: 0;}\\n div.clear {clear: both;}\\n body {background: #EEEEEE; margin: 0; padding: 0;\\n font-family: 'Lucida Grande', 'Lucida Sans Unicode',\\n 'Garuda';}\\n code {font-family: 'Lucida Console', monospace;\\n font-size: 12px;}\\n li {height: 18px;}\\n ul {list-style: none; margin: 0; padding: 0;}\\n ol:hover {cursor: pointer;}\\n ol li {white-space: pre;}\\n #explanation {font-size: 12px; color: #666666;\\n margin: 20px 0 0 100px;}\\n/* WRAP */\\n #wrap {width: 1000px; background: #FFFFFF; margin: 0 auto;\\n padding: 30px 50px 20px 50px;\\n border-left: 1px solid #DDDDDD;\\n border-right: 1px solid #DDDDDD;}\\n/* HEADER */\\n #header {margin: 0 auto 25px auto;}\\n #header img {float: left;}\\n #header #summary {float: left; margin: 12px 0 0 20px; width:660px;\\n font-family: 'Lucida Grande', 'Lucida Sans Unicode';}\\n h1 {margin: 0; font-size: 36px; color: #981919;}\\n h2 {margin: 0; font-size: 22px; color: #333333;}\\n #header ul {margin: 0; font-size: 12px; color: #666666;}\\n #header ul li strong{color: #444444;}\\n #header ul li {display: inline; padding: 0 10px;}\\n #header ul li.first {padding-left: 0;}\\n #header ul li.last {border: 0; padding-right: 0;}\\n/* BODY */\\n #backtrace,\\n #get,\\n #post,\\n #cookies,\\n #rack {width: 980px; margin: 0 auto 10px auto;}\\n p#nav {float: right; font-size: 14px;}\\n/* BACKTRACE */\\n a#expando {float: left; padding-left: 5px; color: #666666;\\n font-size: 14px; text-decoration: none; cursor: pointer;}\\n a#expando:hover {text-decoration: underline;}\\n h3 {float: left; width: 100px; margin-bottom: 10px;\\n color: #981919; font-size: 14px; font-weight: bold;}\\n #nav a {color: #666666; text-decoration: none; padding: 0 5px;}\\n #backtrace li.frame-info {background: #f7f7f7; padding-left: 10px;\\n font-size: 12px; color: #333333;}\\n #backtrace ul {list-style-position: outside; border: 1px solid #E9E9E9;\\n border-bottom: 0;}\\n #backtrace ol {width: 920px; margin-left: 50px;\\n font: 10px 'Lucida Console', monospace; color: #666666;}\\n #backtrace ol li {border: 0; border-left: 1px solid #E9E9E9;\\n padding: 2px 0;}\\n #backtrace ol code {font-size: 10px; color: #555555; padding-left: 5px;}\\n #backtrace-ul li {border-bottom: 1px solid #E9E9E9; height: auto;\\n padding: 3px 0;}\\n #backtrace-ul .code {padding: 6px 0 4px 0;}\\n #backtrace.condensed .system,\\n #backtrace.condensed .framework {display:none;}\\n/* REQUEST DATA */\\n p.no-data {padding-top: 2px; font-size: 12px; color: #666666;}\\n table.req {width: 980px; text-align: left; font-size: 12px;\\n color: #666666; padding: 0; border-spacing: 0;\\n border: 1px solid #EEEEEE; border-bottom: 0;\\n border-left: 0;\\n clear:both}\\n table.req tr th {padding: 2px 10px; font-weight: bold;\\n background: #F7F7F7; border-bottom: 1px solid #EEEEEE;\\n border-left: 1px solid #EEEEEE;}\\n table.req tr td {padding: 2px 20px 2px 10px;\\n border-bottom: 1px solid #EEEEEE;\\n border-left: 1px solid #EEEEEE;}\\n/* HIDE PRE/POST CODE AT START */\\n .pre-context,\\n .post-context {display: none;}\\n\\n table td.code {width:750px}\\n table td.code div {width:750px;overflow:hidden}\\n</style>\\n</head>\\n<body>\\n <div id=\\\"wrap\\\">\\n <div id=\\\"header\\\">\\n <img src=\\\"\"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n; _erbout.concat(( env['SCRIPT_NAME'] ).to_s); _erbout.concat \"/__sinatra__/500.png\\\" alt=\\\"application error\\\" height=\\\"161\\\" width=\\\"313\\\" />\\n <div id=\\\"summary\\\">\\n <h1><strong>\"\n\n; _erbout.concat((h exception.class ).to_s); _erbout.concat \"</strong> at <strong>\"; _erbout.concat((h path ).to_s); _erbout.concat \"\\n </strong></h1>\\n <h2>\"\n\n; _erbout.concat((h exception.message ).to_s); _erbout.concat \"</h2>\\n <ul>\\n <li class=\\\"first\\\"><strong>file:</strong> <code>\\n \"\n\n\n; _erbout.concat((h frames.first.filename.split(\"/\").last ).to_s); _erbout.concat \"</code></li>\\n <li><strong>location:</strong> <code>\"\n; _erbout.concat((h frames.first.function ).to_s); _erbout.concat \"\\n </code></li>\\n <li class=\\\"last\\\"><strong>line:\\n </strong> \"\n\n\n; _erbout.concat((h frames.first.lineno ).to_s); _erbout.concat \"</li>\\n </ul>\\n </div>\\n <div class=\\\"clear\\\"></div>\\n </div>\\n\\n <div id=\\\"backtrace\\\" class='condensed'>\\n <h3>BACKTRACE</h3>\\n <p><a href=\\\"#\\\" id=\\\"expando\\\"\\n onclick=\\\"toggleBacktrace(); return false\\\">(expand)</a></p>\\n <p id=\\\"nav\\\"><strong>JUMP TO:</strong>\\n <a href=\\\"#get-info\\\">GET</a>\\n <a href=\\\"#post-info\\\">POST</a>\\n <a href=\\\"#cookie-info\\\">COOKIES</a>\\n <a href=\\\"#env-info\\\">ENV</a>\\n </p>\\n <div class=\\\"clear\\\"></div>\\n\\n <ul id=\\\"backtrace-ul\\\">\\n\\n \"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n; id = 1 ; _erbout.concat \"\\n \"\n; frames.each do |frame| ; _erbout.concat \"\\n \"\n; if frame.context_line && frame.context_line != \"#\" ; _erbout.concat \"\\n\\n <li class=\\\"frame-info \"\n\n; _erbout.concat(( frame_class(frame) ).to_s); _erbout.concat \"\\\">\\n <code>\"\n; _erbout.concat((h frame.filename ).to_s); _erbout.concat \"</code> in\\n <code><strong>\"\n; _erbout.concat((h frame.function ).to_s); _erbout.concat \"</strong></code>\\n </li>\\n\\n <li class=\\\"code \"\n\n\n; _erbout.concat(( frame_class(frame) ).to_s); _erbout.concat \"\\\">\\n \"\n; if frame.pre_context ; _erbout.concat \"\\n <ol start=\\\"\"\n; _erbout.concat((h frame.pre_context_lineno + 1 ).to_s); _erbout.concat \"\\\"\\n class=\\\"pre-context\\\" id=\\\"pre-\"\n; _erbout.concat(( id ).to_s); _erbout.concat \"\\\"\\n onclick=\\\"toggle(\"\n; _erbout.concat(( id ).to_s); _erbout.concat \");\\\">\\n \"\n; frame.pre_context.each do |line| ; _erbout.concat \"\\n <li class=\\\"pre-context-line\\\"><code>\"\n; _erbout.concat((h line ).to_s); _erbout.concat \"</code></li>\\n \"\n; end ; _erbout.concat \"\\n </ol>\\n \"\n\n; end ; _erbout.concat \"\\n\\n <ol start=\\\"\"\n\n; _erbout.concat(( frame.lineno ).to_s); _erbout.concat \"\\\" class=\\\"context\\\" id=\\\"\"; _erbout.concat(( id ).to_s); _erbout.concat \"\\\"\\n onclick=\\\"toggle(\"\n; _erbout.concat(( id ).to_s); _erbout.concat \");\\\">\\n <li class=\\\"context-line\\\" id=\\\"context-\"\n; _erbout.concat(( id ).to_s); _erbout.concat \"\\\"><code>\"; _erbout.concat((\n h frame.context_line ).to_s); _erbout.concat \"</code></li>\\n </ol>\\n\\n \"\n\n\n; if frame.post_context ; _erbout.concat \"\\n <ol start=\\\"\"\n; _erbout.concat((h frame.lineno + 1 ).to_s); _erbout.concat \"\\\" class=\\\"post-context\\\"\\n id=\\\"post-\"\n; _erbout.concat(( id ).to_s); _erbout.concat \"\\\" onclick=\\\"toggle(\"; _erbout.concat(( id ).to_s); _erbout.concat \");\\\">\\n \"\n; frame.post_context.each do |line| ; _erbout.concat \"\\n <li class=\\\"post-context-line\\\"><code>\"\n; _erbout.concat((h line ).to_s); _erbout.concat \"</code></li>\\n \"\n; end ; _erbout.concat \"\\n </ol>\\n \"\n\n; end ; _erbout.concat \"\\n <div class=\\\"clear\\\"></div>\\n </li>\\n\\n \"\n\n\n\n; end ; _erbout.concat \"\\n\\n \"\n\n; id += 1 ; _erbout.concat \"\\n \"\n; end ; _erbout.concat \"\\n\\n </ul>\\n </div> <!-- /BACKTRACE -->\\n\\n <div id=\\\"get\\\">\\n <h3 id=\\\"get-info\\\">GET</h3>\\n \"\n\n\n\n\n\n\n; if req.GET and not req.GET.empty? ; _erbout.concat \"\\n <table class=\\\"req\\\">\\n <tr>\\n <th>Variable</th>\\n <th>Value</th>\\n </tr>\\n \"\n\n\n\n\n\n; req.GET.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n <tr>\\n <td>\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"</td>\\n <td class=\\\"code\\\"><div>\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"</div></td>\\n </tr>\\n \"\n\n; } ; _erbout.concat \"\\n </table>\\n \"\n\n; else ; _erbout.concat \"\\n <p class=\\\"no-data\\\">No GET data.</p>\\n \"\n\n; end ; _erbout.concat \"\\n <div class=\\\"clear\\\"></div>\\n </div> <!-- /GET -->\\n\\n <div id=\\\"post\\\">\\n <h3 id=\\\"post-info\\\">POST</h3>\\n \"\n\n\n\n\n\n; if req.POST and not req.POST.empty? ; _erbout.concat \"\\n <table class=\\\"req\\\">\\n <tr>\\n <th>Variable</th>\\n <th>Value</th>\\n </tr>\\n \"\n\n\n\n\n\n; req.POST.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n <tr>\\n <td>\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"</td>\\n <td class=\\\"code\\\"><div>\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"</div></td>\\n </tr>\\n \"\n\n; } ; _erbout.concat \"\\n </table>\\n \"\n\n; else ; _erbout.concat \"\\n <p class=\\\"no-data\\\">No POST data.</p>\\n \"\n\n; end ; _erbout.concat \"\\n <div class=\\\"clear\\\"></div>\\n </div> <!-- /POST -->\\n\\n <div id=\\\"cookies\\\">\\n <h3 id=\\\"cookie-info\\\">COOKIES</h3>\\n \"\n\n\n\n\n\n; unless req.cookies.empty? ; _erbout.concat \"\\n <table class=\\\"req\\\">\\n <tr>\\n <th>Variable</th>\\n <th>Value</th>\\n </tr>\\n \"\n\n\n\n\n\n; req.cookies.each { |key, val| ; _erbout.concat \"\\n <tr>\\n <td>\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"</td>\\n <td class=\\\"code\\\"><div>\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"</div></td>\\n </tr>\\n \"\n\n; } ; _erbout.concat \"\\n </table>\\n \"\n\n; else ; _erbout.concat \"\\n <p class=\\\"no-data\\\">No cookie data.</p>\\n \"\n\n; end ; _erbout.concat \"\\n <div class=\\\"clear\\\"></div>\\n </div> <!-- /COOKIES -->\\n\\n <div id=\\\"rack\\\">\\n <h3 id=\\\"env-info\\\">Rack ENV</h3>\\n <table class=\\\"req\\\">\\n <tr>\\n <th>Variable</th>\\n <th>Value</th>\\n </tr>\\n \"\n\n\n\n\n\n\n\n\n\n\n; env.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n <tr>\\n <td>\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"</td>\\n <td class=\\\"code\\\"><div>\"\n; _erbout.concat((h val ).to_s); _erbout.concat \"</div></td>\\n </tr>\\n \"\n\n; } ; _erbout.concat \"\\n </table>\\n <div class=\\\"clear\\\"></div>\\n </div> <!-- /RACK ENV -->\\n\\n <p id=\\\"explanation\\\">You're seeing this error because you have\\nenabled the <code>show_exceptions</code> setting.</p>\\n </div> <!-- /WRAP -->\\n </body>\\n</html>\\n\"\n\n\n\n\n\n\n\n\n\n; _erbout.force_encoding(__ENCODING__)", @enc=#<Encoding:US-ASCII>, @filename=nil>>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment