Hi folks,
I’m facing a very annoying problem with my production web site. I
constantly get ActionView::TemplateError .
The controller code for the action is
def contact
end
and the view code for the action is
Contact Information
Nothing more nothing extra. There’s no single line of code. Any idea
what might be the problem? The environment is
Apache2 FastCGI, MySQL every thing works fine, all actions all
controllers with all that heavyy database processing stuff. The only
failing action is the one with no code in it and esspecially this one.
I suspect if it is a cache problem. Although I’ve set nothing.
Thanks in advance.
Oyku.
PS: Here’s the error output.
A ActionView::TemplateError occured in
corporate#contact:
undefined method `[]' for nil:NilClass On line #1 of app/views/
corporate/contact.rhtml
1: <h1>Contact Information</h1>
2: <p>
3: <table cellpadding="5" cellspacing="3">
4: <tr>
#{RAILS_ROOT}/app/views/tld_mailer/corporate_contact.rhtml:1
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_view/base.rb:269:in send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/base.rb:269:in
compile_and_render_template’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_view/base.rb:245:in render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/base.rb:206:in
render_file’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/base.rb:643:in render_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/base.rb:583:in
render_with_no_layout’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/layout.rb:218:in render_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/benchmarking.rb:53:in
render’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/benchmarking.rb:53:in measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/benchmarking.rb:53:in
render’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/base.rb:842:in perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/filters.rb:332:in
perform_action_without_benchmark’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/benchmarking.rb:69:in perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/benchmarking.rb:69:in
measure’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/benchmarking.rb:69:in perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/rescue.rb:82:in
perform_action’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/base.rb:365:in send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_controller/base.rb:365:in
process_without_session_management_support’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/
action_controller/session_management.rb:116:in process' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb: 38:in
dispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/
fcgi_handler.rb:141:in process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/ fcgi_handler.rb:53:in
process!’
/usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/
fcgi_handler.rb:52:in each_cgi' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in
session’
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:104:in each_request' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:36:in
each’
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/ fcgi_handler.rb:52:in
process!’
/usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/
fcgi_handler.rb:22:in `process!’
/rails/tld/public/dispatch.fcgi:26