Skip to content

Instantly share code, notes, and snippets.

@timgauthier
Created April 16, 2014 14:00
Show Gist options
  • Save timgauthier/10880262 to your computer and use it in GitHub Desktop.
Save timgauthier/10880262 to your computer and use it in GitHub Desktop.
NoMethodError at /journal/2014/daily-show-with-jon-steward/
undefined method `to_sym' for nil:NilClass
Ruby /Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file, line 230
Web GET localhost/journal/2014/daily-show-with-jon-steward/
Jump to:
GETPOSTCookiesENV
Traceback (innermost first)
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file
engine = extension[1..-1].to_sym...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/rendering.rb: in render_template
content = render_individual_file(layout_path, locs, opts, context) { content }...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/sitemap/resource.rb: in block in render
app.render_template(source_file, locs, opts, blocks)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.4/lib/active_support/notifications.rb: in instrument
yield payload if block_given?...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/util.rb: in instrument
::ActiveSupport::Notifications.instrument(suffixed_name, payload, &block)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/application.rb: in instrument
delegate :instrument, :to => ::Middleman::Util...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/sitemap/resource.rb: in instrument
delegate :logger, :instrument, :to => :app...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/sitemap/resource.rb: in render
instrument 'render.resource', :path => relative_source, :destination_path => destination_path do...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-blog-3.5.2/lib/middleman-blog/blog_article.rb: in render
content = super(opts, locs, &block)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/request.rb: in process_request
output = resource.render do...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/request.rb: in block in call!
process_request(env, req, res)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/request.rb: in catch
catch(:halt) do...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/request.rb: in call!
catch(:halt) do...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/request.rb: in call
dup.call!(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: in call
to_app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb: in block in call
return app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb: in each
@mapping.each do |host, location, match, app|...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb: in call
@mapping.each do |host, location, match, app|...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-livereload-0.3.15/lib/rack/livereload.rb: in _call
status, headers, body = result = @app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-livereload-0.3.15/lib/rack/livereload.rb: in call
dup._call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/showexceptions.rb: in call
@app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb: in call
status, headers, body = @app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb: in _call
status, headers, @body = @app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb: in call
dup._call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: in call
to_app.call(env)...
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb: in service
status, headers, body = @app.call(env)...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb: in service
si.service(req, res)...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb: in run
server.service(req, res)...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb: in block in start_thread
block ? block.call(sock) : run(sock)...
Request information
GET
No GET data.
POST
No POST data.
COOKIES
Variable Value
__utma
"111872281.111312797.1381244616.1391562165.1391654134.20"
__utmz
"111872281.1381244616.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)"
__utmv
"1.|1=TileMill Version=0.10.1=1"
gs_u_GSN-646224-U
"1918867368:104495:208144:1378279850786"
Rack ENV
Variable Value
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en-us
HTTP_CONNECTION
keep-alive
HTTP_COOKIE
__utma=111872281.111312797.1381244616.1391562165.1391654134.20; __utmz=111872281.1381244616.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.377243911.1390949710.1390949710.1390949710.1; __utmv=1.|1=TileMill%20Version=0.10.1=1; __utmz=1.1390949710.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); gs_u_GSN-646224-U=1918867368:104495:208144:1378279850786
HTTP_DNT
1
HTTP_HOST
localhost:4000
HTTP_REFERER
http://localhost:4000/journal/
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14
HTTP_VERSION
HTTP/1.1
PATH_INFO
/journal/2014/daily-show-with-jon-steward/
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REMOTE_HOST
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/journal/2014/daily-show-with-jon-steward/
REQUEST_URI
http://localhost:4000/journal/2014/daily-show-with-jon-steward/
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
4000
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27)
rack.errors
#<Rack::Lint::ErrorWrapper:0x007fc024e09de0 @error=#<IO:<STDERR>>>
rack.input
#<Rack::Lint::InputWrapper:0x007fc024e09e58 @input=#<StringIO:0x007fc024dd98c0>>
rack.multiprocess
false
rack.multithread
true
rack.request.cookie_hash
{"__utma"=>"111872281.111312797.1381244616.1391562165.1391654134.20", "__utmz"=>"111872281.1381244616.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "__utmv"=>"1.|1=TileMill Version=0.10.1=1", "gs_u_GSN-646224-U"=>"1918867368:104495:208144:1378279850786"}
rack.request.cookie_string
__utma=111872281.111312797.1381244616.1391562165.1391654134.20; __utmz=111872281.1381244616.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.377243911.1390949710.1390949710.1390949710.1; __utmv=1.|1=TileMill%20Version=0.10.1=1; __utmz=1.1390949710.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); gs_u_GSN-646224-U=1918867368:104495:208144:1378279850786
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 2]
You're seeing this error because you use Rack::ShowExceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment