Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NoMethodError in Welcome#index
Showing app/views/welcome/index.rhtml where line #23 raised:
undefined method `new0' for DateTime:Class
Extracted source (around line #23):
20: <% for project in @projects %>
21: <% @project = project %>
22: <li>
23: <%= link_to_project project %> (<%= format_time(project.created_on) %>)
24: <%= textilizable project.short_description, :project => project %>
25: </li>
26: <% end %>
RAILS_ROOT: /usr/local/www/chiliproject-3.0.0
Application Trace | Framework Trace | Full Trace
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb:52:in `datetime_new!'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb:74:in `at'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb:113:in `block in period_for_utc'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb:112:in `downto'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb:112:in `period_for_utc'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb:36:in `period_for_utc'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/values/time_zone.rb:288:in `period_for_utc'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/time_with_zone.rb:58:in `period'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/time_with_zone.rb:44:in `time'
(eval):2:in `to_date'
/usr/local/www/chiliproject-3.0.0/lib/redmine/i18n.rb:54:in `format_date'
/usr/local/www/chiliproject-3.0.0/lib/redmine/i18n.rb:62:in `format_time'
/usr/local/www/chiliproject-3.0.0/app/views/welcome/index.rhtml:23:in `block in _run_rhtml_app47views47welcome47index46rhtml'
/usr/local/www/chiliproject-3.0.0/app/views/welcome/index.rhtml:20:in `each'
/usr/local/www/chiliproject-3.0.0/app/views/welcome/index.rhtml:20:in `_run_rhtml_app47views47welcome47index46rhtml'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `block in render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/base.rb:306:in `with_template'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/renderable.rb:30:in `render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/template.rb:205:in `render_template'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/base.rb:265:in `render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/base.rb:348:in `_render_with_layout'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_view/base.rb:262:in `render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:1252:in `render_for_file'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:936:in `render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `block in render_with_benchmark'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:1328:in `default_render'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:1334:in `perform_action'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process_with_filters'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `block in call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/rack-1.1.3/lib/rack/head.rb:9:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/rack-1.1.3/lib/rack/methodoverride.rb:24:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/rack-1.1.3/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/rack-1.1.3/lib/rack/lock.rb:11:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:114:in `block in call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/reloader.rb:34:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:108:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/rack/adapter/rails.rb:69:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/connection.rb:84:in `block in pre_process'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/gems/thin-1.2.11/bin/thin:6:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/bin/thin:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p125@all/bin/thin:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.