# Partial wont render .html.erb

**URL:** <https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783>\
**Category:** Rails\
**Created:** [September 19, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783 "2009-09-19T14:41:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 19, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/1 "2009-09-19T14:41:40Z")

</div>

Hi, My partial simply wont render a .html.erb file. This is exactly  
what I get on the error screen:

ActionView::MissingTemplate in Categories#show

Showing app/views/categories/show.html.erb where line #7 raised:

Missing template tutorials/\_tutorial.erb in view path app/views

Extracted source (around line #7):

4:

  
5: 
## Tutorials
  
6: 
  
7: \<%= render :partial =\> @category.tutorials %\>  
8: 
  
9:  
10: 
## New Tutorial

RAILS\_ROOT: C:/rails\_apps/DevHQ  
Application Trace | Framework Trace | Full Trace

C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
paths.rb:66:in `find_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:236:in`\_unmemoized\_\_pick\_partial\_template’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
memoizable.rb:84:in `_pick_partial_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:219:in`render\_partial\_collection’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_collection.rb:364:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `map' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_collection.rb:364:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
partials.rb:216:in `render_partial_collection' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:195:in`render\_partial’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:262:in `render' C:/rails_apps/DevHQ/app/views/categories/show.html.erb:7:in`\_run\_erb\_app47views47categories47show46html46erb’  
C:/rails\_apps/DevHQ/app/controllers/categories\_controller.rb:18:in  
`show’

C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
paths.rb:66:in `find_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:236:in`\_unmemoized\_\_pick\_partial\_template’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
memoizable.rb:84:in `_pick_partial_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:219:in`render\_partial\_collection’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_collection.rb:364:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `map' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_collection.rb:364:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
partials.rb:216:in `render_partial_collection' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:195:in`render\_partial’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:262:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ renderable.rb:34:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
renderable.rb:34:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ base.rb:301:in`with\_template’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
renderable.rb:30:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ template.rb:194:in`render\_template’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:260:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ base.rb:343:in`\_render\_with\_layout’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:257:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:1241:in`render\_for\_file’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:943:in `render_without_benchmark' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:51:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ core_ext/benchmark.rb:10:in`realtime’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:51:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:135:in `send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:135:in`custom’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:179:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:179:in`respond’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:173:in `each' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:173:in`respond’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:107:in `respond_to' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:1322:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:1322:in `perform_action_without_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ filters.rb:617:in`call\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
filters.rb:610:in `perform_action_without_benchmark' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:68:in`perform\_action\_without\_rescue’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ core_ext/benchmark.rb:10:in`realtime’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:68:in`perform\_action\_without\_rescue’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
rescue.rb:160:in `perform_action_without_flash' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ flash.rb:141:in`perform\_action’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:523:in `send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:523:in`process\_without\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
filters.rb:606:in `process' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:391:in`process’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:386:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ routing/route_set.rb:433:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
dispatcher.rb:88:in `dispatch' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ dispatcher.rb:111:in`\_call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
dispatcher.rb:82:in `initialize' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ query_cache.rb:29:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
query\_cache.rb:29:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:34:in`cache’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
query\_cache.rb:9:in `cache' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ query_cache.rb:28:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
connection\_adapters/abstract/connection\_pool.rb:361:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:  
24:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ params_parser.rb:15:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
rewindable\_input.rb:25:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ session/cookie_store.rb:93:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
reloader.rb:9:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ failsafe.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`synchronize’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ dispatcher.rb:106:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:  
31:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in  
`each' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/  
log\_tailer.rb:17:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb: 13:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:  
46:in `service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in`service’  
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in`start\_thread’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in`start\_thread’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in`each’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb: 13:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
script/server:3

C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
paths.rb:66:in `find_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:236:in`\_unmemoized\_\_pick\_partial\_template’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
memoizable.rb:84:in `_pick_partial_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:219:in`render\_partial\_collection’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_collection.rb:364:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `map' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:219:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
associations/association\_proxy.rb:219:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_collection.rb:364:in`method\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
partials.rb:216:in `render_partial_collection' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ partials.rb:195:in`render\_partial’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:262:in `render' C:/rails_apps/DevHQ/app/views/categories/show.html.erb:7:in`\_run\_erb\_app47views47categories47show46html46erb’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
renderable.rb:34:in `send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ renderable.rb:34:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:301:in `with_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ renderable.rb:30:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
template.rb:194:in `render_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ base.rb:260:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_view/  
base.rb:343:in `_render_with_layout' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/ base.rb:257:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:1241:in `render_for_file' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:943:in`render\_without\_benchmark’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
benchmarking.rb:51:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:10:in `realtime' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
benchmarking.rb:51:in `render' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:135:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:135:in `custom' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:179:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:179:in `respond' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:173:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
mime\_responds.rb:173:in `respond' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ mime_responds.rb:107:in`respond\_to’  
C:/rails\_apps/DevHQ/app/controllers/categories\_controller.rb:18:in  
`show' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:1322:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:1322:in `perform_action_without_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ filters.rb:617:in`call\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
filters.rb:610:in `perform_action_without_benchmark' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:68:in`perform\_action\_without\_rescue’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ core_ext/benchmark.rb:10:in`realtime’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
core\_ext/benchmark.rb:17:in `ms' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ benchmarking.rb:68:in`perform\_action\_without\_rescue’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
rescue.rb:160:in `perform_action_without_flash' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ flash.rb:141:in`perform\_action’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:523:in `send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:523:in`process\_without\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
filters.rb:606:in `process' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ base.rb:391:in`process’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
base.rb:386:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ routing/route_set.rb:433:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
dispatcher.rb:88:in `dispatch' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ dispatcher.rb:111:in`\_call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
dispatcher.rb:82:in `initialize' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ query_cache.rb:29:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
query\_cache.rb:29:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:34:in`cache’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
query\_cache.rb:9:in `cache' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ query_cache.rb:28:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/  
connection\_adapters/abstract/connection\_pool.rb:361:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:  
24:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ params_parser.rb:15:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
rewindable\_input.rb:25:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ session/cookie_store.rb:93:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/  
reloader.rb:9:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ failsafe.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`synchronize’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ dispatcher.rb:106:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:  
31:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in  
`each' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/  
log\_tailer.rb:17:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb: 13:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:  
46:in `service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in`service’  
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in`start\_thread’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in`start\_thread’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in`each’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb: 13:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
script/server:3

Request

Parameters:

{“id”=\>“1”}

Show session dump

* * *

Response

Headers:

{“Content-Type”=\>“text/html”,  
“Cache-Control”=\>“no-cache”}

Please Help

Thanks,

Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 19, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/2 "2009-09-19T14:55:08Z")

</div>

2009/9/19 Joe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi, My partial simply wont render a .html.erb file. This is exactly  
> what I get on the error screen:
> 
> Â ActionView::MissingTemplate in Categories#show
> 
> Showing app/views/categories/show.html.erb where line #7 raised:
> 
> Missing template tutorials/\_tutorial.erb in view path app/views

Have you got a tutorials/\_tutorial.erb in app/views?

Colin

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 19, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/3 "2009-09-19T15:37:17Z")

</div>

Yes…

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 19, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/4 "2009-09-19T16:44:36Z")

</div>

I really cant think what might be wrong… Does anyone know what is  
wrong here?

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 19, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/5 "2009-09-19T18:11:13Z")

</div>

2009/9/19 Joe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Yes…

What is the value of @category.tutorials ( I presume this is a string  
but why it is named as a plural )?

Colin

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 20, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/6 "2009-09-20T17:39:28Z")

</div>

My guess is that your syntax is incorrect and you are missing the name  
of the partial to render itself and also either the :object  
or :collection symbols.

This is from the documentation to rendering partials, in case it  
helps:

# Renders the same partial with a local variable.

render :partial =\> “person”, :locals =\> { :name =\> “david” }

# Renders the partial, making @new\_person available through

# the local variable ‘person’

render :partial =\> “person”, :object =\> @new\_person

# Renders a collection of the same partial by making each element

# of @winners available through the local variable “person” as it

# builds the complete response.

render :partial =\> “person”, :collection =\> @winners

# Renders a collection of partials but with a custom local variable

name  
render :partial =\> “admin\_person”, :collection =\> @winners, :as  
=\> :person

# Renders the same collection of partials, but also renders the

# person\_divider partial between each person partial.

render :partial =\> “person”, :collection =\>  
@winners, :spacer\_template =\> “person\_divider”

# Renders a collection of partials located in a view subfolder

# outside of our current controller. In this example we will be

# rendering app/views/shared/\_note.r(html|xml) Inside the partial

# each element of @new\_notes is available as the local var “note”.

render :partial =\> “shared/note”, :collection =\> @new\_notes

# Renders the partial with a status code of 500 (internal error).

render :partial =\> “broken”, :status =\> 500

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 20, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/partial-wont-render-html-erb/175783/7 "2009-09-20T18:58:29Z")

</div>

2009/9/19 Joe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Yes…

Is it definitely in views/tutorials rather than views/categories?

Does the alternative syntax work:  
render :partial =\> “tutorials/tutorial”, :collection =\>  
@category.tutorials

Colin
