Skip to content

Instantly share code, notes, and snippets.

@milk1000cc
Created January 24, 2012 00:52
Show Gist options
  • Save milk1000cc/1667045 to your computer and use it in GitHub Desktop.
Save milk1000cc/1667045 to your computer and use it in GitHub Desktop.
render :file => '...' error on rails 3.2.0 and jpmobile 2.0.5
NoMethodError: undefined method `compact' for nil:NilClass
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:153:in `block in build_query'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:152:in `each'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:152:in `build_query'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:121:in `query'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:117:in `find_templates'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:46:in `block in find_all'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:75:in `cached'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/template/resolver.rb:45:in `find_all'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:65:in `block (2 levels) in find_all'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:64:in `each'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:64:in `block in find_all'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:63:in `each'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:63:in `find_all'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/path_set.rb:58:in `find'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/lookup_context.rb:109:in `find'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:3:in `find_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:22:in `block in determine_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/lookup_context.rb:130:in `with_fallbacks'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:3:in `with_fallbacks'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:22:in `determine_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:10:in `render'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:36:in `render_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:17:in `render'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:109:in `_render_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/streaming.rb:225:in `_render_template'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:103:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:88:in `render'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/rendering.rb:16:in `render'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
[GEM_ROOT]/gems/activesupport-3.2.0/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/local/lib/ruby/1.9.1/benchmark.rb:309:in `realtime'
[GEM_ROOT]/gems/activesupport-3.2.0/lib/active_support/core_ext/benchmark.rb:5:in `ms'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
[GEM_ROOT]/gems/activerecord-3.2.0/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
[GEM_ROOT]/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:39:in `render'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment