'this_blog' NameError in production log (Articles and Theme


#1

I don’t really know what this means … but it can’t be good and it
gets thrown out quite a few times my the production log.

NameError (undefined local variable or method this_blog' for #<ArticlesController:0x4086b5dc>): /app/controllers/articles_controller.rb:162:inverify_config’
/vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
send' /vendor/rails/actionpack/lib/action_controller/filters.rb:399:incall_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
each' /vendor/rails/actionpack/lib/action_controller/filters.rb:394:incall_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:383:in
before_action' /vendor/rails/actionpack/lib/action_controller/filters.rb:365:inperform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:inmeasure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:inperform_action’
/vendor/rails/actionpack/lib/action_controller/base.rb:381:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:381:inprocess_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/ session_management.rb:117:inprocess’
/vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:150:inprocess_request’
/vendor/rails/railties/lib/fcgi_handler.rb:54:in process!' /vendor/rails/railties/lib/fcgi_handler.rb:53:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/vendor/rails/railties/lib/fcgi_handler.rb:53:in process!' /vendor/rails/railties/lib/fcgi_handler.rb:23:inprocess!’
dispatch.fcgi:24

Actually there’s also errors thrown out for ‘this_blog’ with the
ThemeController as well

NameError (undefined local variable or method this_blog' for #<ThemeController:0x40872f80>): /app/controllers/theme_controller.rb:28:inrender_theme_item’
/app/controllers/theme_controller.rb:6:in stylesheets' /vendor/rails/actionpack/lib/action_controller/base.rb:910:insend’
/vendor/rails/actionpack/lib/action_controller/base.rb:910:in
perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:inmeasure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:inperform_action’
/vendor/rails/actionpack/lib/action_controller/base.rb:381:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:381:inprocess_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/ session_management.rb:117:inprocess’
/vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:150:inprocess_request’
/vendor/rails/railties/lib/fcgi_handler.rb:54:in process!' /vendor/rails/railties/lib/fcgi_handler.rb:53:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/vendor/rails/railties/lib/fcgi_handler.rb:53:in process!' /vendor/rails/railties/lib/fcgi_handler.rb:23:inprocess!’
dispatch.fcgi:24

Haven’t raised a ticket because don’t know if it needs one.

Cheers

Gary