Here is the error from /var/log/apache2/error.log. It was interesting to
see that I could get the next action to go away if I left the box checked
and just hit "Home":
ActionView::TemplateError (undefined method `show_project_on_todo_done'
for #<Preference:0xb7553720>) on line #24 of
app/views/todos/toggle_check.rjs:
21: end
22: page.hide "status"
23: page.replace_html "badge_count", @down_count
24: if @todo.completed? && [EMAIL PROTECTED] &&
@prefs.show_project_on_todo_done && !source_view_is(:project)
25: page.redirect_to project_path(@todo.project_id)
26: end
27: else
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1848:in
`method_missing'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:123:in
`method_missing'
#{RAILS_ROOT}/app/views/todos/toggle_check.rjs:24:in
`__bind_1172195876_623537'
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb:44:in
`instance_exec'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:313:in
`initialize'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:625:in
`update_page'
#{RAILS_ROOT}/app/views/todos/toggle_check.rjs:0:in
`_run_rjs_47app47views47todos47toggle_check46rjs'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in
`compile_and_render_template'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in
`render_template'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in
`render_file'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in
`render_file'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:711:in
`render_with_no_layout'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in
`render_without_benchmark'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in
`render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in
`render'
#{RAILS_ROOT}/app/controllers/todos_controller.rb:112:in `toggle_check'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in
`custom'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:167:in
`respond'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:161:in
`respond'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:105:in
`respond_to'
#{RAILS_ROOT}/app/controllers/todos_controller.rb:105:in `toggle_check'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
`perform_action_without_filters'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:449:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:449:in
`call'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in
`perform_action_without_benchmark'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in
`perform_action'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
`process_without_filters'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
`process_without_session_management_support'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
`process'
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
`process'
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:168:in
`process_request'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:143:in
`process_each_request!'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:109:in
`with_signal_handler'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:142:in
`process_each_request!'
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:141:in
`process_each_request!'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:55:in `process!'
#{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!'
/var/www/tracks-local/tracks/public/dispatch.fcgi:24
> Check your log after the error occurs and attach the errors to an email.
>
> [EMAIL PROTECTED] wrote:
>> Running trunk from a few days ago, when I click the checkbox to complete
>> a
>> next action, I get a message saying "an error occurred on the server".
>> This is from a pre-existing next action. A new next action can be
>> completed. Maybe I forgot to run 'rake migrate' when I checked out the
>> latest trunk?
>>
>> Stephen
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss