XCHYBA SABLONY: ActiveRecord::RecordNotFound-Couldn't find Project with ID=0

/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/base.rb:1620:in `find_one'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/base.rb:1603:in `find_from_ids'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/base.rb:620:in `find'
(erb):9:in `prevod_clean'
/usr/share/ruby/erb.rb:849:in `eval'
/usr/share/ruby/erb.rb:849:in `result'
/wx/kopr/app/models/smlouva_akce.rb:432:in `prevod_clean'
/wx/kopr/app/models/smlouva_akce.rb:171:in `vem_sablonu'
(erb):1:in `run'
/usr/share/ruby/erb.rb:849:in `eval'
/usr/share/ruby/erb.rb:849:in `result'
/wx/kopr/app/models/smlouva_akce.rb:361:in `run'
/wx/kopr/app/controllers/smlouva_akces_controller.rb:226:in `show_for_web'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
/wx/kopr/vendor/plugins/render_component/lib/components.rb:39:in `perform_action_with_render_component'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_with_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `block in call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'
/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
ERROR IN: nil
undefined method `id' for nil:NilClass
undefined method `all_events' for nil:NilClass ["(erb):9:in `runs'", "/usr/share/ruby/erb.rb:849:in `eval'", "/usr/share/ruby/erb.rb:849:in `result'", "/wx/kopr/app/models/smlouva_akce.rb:331:in `runs'", "(erb):286:in `kopr_page'", "(erb):10:in `run'", "/usr/share/ruby/erb.rb:849:in `eval'", "/usr/share/ruby/erb.rb:849:in `result'", "/wx/kopr/app/models/smlouva_akce.rb:361:in `run'", "/wx/kopr/app/controllers/smlouva_akces_controller.rb:226:in `show_for_web'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_with_filters'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'", "/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'", "/usr/share/ruby/benchmark.rb:296:in `realtime'", "/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `ms'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_with_flash'", "/wx/kopr/vendor/plugins/render_component/lib/components.rb:39:in `perform_action_with_render_component'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_with_filters'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `block in call'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'", "/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'", "/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'", "/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'", "/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'", "/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'", "/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'", "/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'", "/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'", "/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'"]

XCHYBA SABLONY: NoMethodError-undefined method `title' for nil:NilClass

(erb):3:in `prevod_clean'
/usr/share/ruby/erb.rb:849:in `eval'
/usr/share/ruby/erb.rb:849:in `result'
/wx/kopr/app/models/smlouva_akce.rb:432:in `prevod_clean'
/wx/kopr/app/models/smlouva_akce.rb:171:in `vem_sablonu'
(erb):14:in `run'
/usr/share/ruby/erb.rb:849:in `eval'
/usr/share/ruby/erb.rb:849:in `result'
/wx/kopr/app/models/smlouva_akce.rb:361:in `run'
/wx/kopr/app/controllers/smlouva_akces_controller.rb:226:in `show_for_web'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/home/deploy/.gem/ruby/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
/wx/kopr/vendor/plugins/render_component/lib/components.rb:39:in `perform_action_with_render_component'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_with_filters'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `block in call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'
/home/deploy/.gem/ruby/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'
/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
/home/deploy/.gem/ruby/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'
/home/deploy/.gem/ruby/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/home/deploy/.gem/ruby/gems/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'