Hi all,
I am having a problem with render function of rails. I have an
application layout which has the following code:
<%= render :partial => ‘common/message’ %>
which is to render partial to display messages. I have the
_message.rhtml in the views/common folder. But when i hit the url there
is an error:
Expected kind of Outputter, got NilClass
The Application Trace is:
c:/ruby/RDE/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/logger.rb:115:in
add' c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:30:in
benchmark’
c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/partials.rb:58:in
render_partial' c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:756:in
render_partial’
c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:680:in
render_with_no_layout' c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:253:in
render_without_benchmark’
c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in
render' c:/ruby/RDE/lib/ruby/1.8/benchmark.rb:293:in
measure’
c:/ruby/RDE/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in
render' #{RAILS_ROOT}/app/controllers/dbparser_controller.rb:103:in
parsesql’
What might be the problem? Please help.
Regards,
Janeve