Error #411
Undefined method rest_hours
Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Start date:
2011-02-12
Due date:
% Done:
0%
Estimated time:
Source:
Detected on version:
Redmine version:
Milestones:
Description
I'm getting the error below, it was supposedly fixed in 0.1.0, I have absolutely no reason why this is showing up again, my setup:
- advanced_roadmap 0.3.0
- redmine_arch_decisions
- redmine_work_time
Ran this after deployment of the plugin:
rake db:migrate:plugins RAILS_ENV=production
I started to go through and strip out rest_hours from various parts of the site (issues, roadmap, etc.) but it's being sort of a pain, especially where there are tables that contain a calculated value with rest_hours.
Processing VersionsController#index (for 192.168.10.1 at 2011-02-12 13:36:59) [GET]
Parameters: {"project_id"=>"[removed]", "action"=>"index", "controller"=>"versions"}
Rendering template within layouts/base
Rendering versions/index
ActionView::TemplateError (undefined method `rest_hours' for #<Issue:0xb5f35664>) on line #12 of vendor/plugins/advanced_roadmap/app/views/versions/_total.html.erb:
9: versions.each do |version|
10: estimated_hours += version.estimated_hours
11: spent_hours += version.spent_hours
12: rest_hours += version.rest_hours
13: parallel_rest_hours += version.parallel_rest_hours
14: completed_pourcent += version.spent_hours
15: closed_pourcent += version.closed_spent_hours
vendor/plugins/advanced_roadmap/app/views/versions/_total.html.erb:12
vendor/plugins/advanced_roadmap/app/views/versions/_total.html.erb:9:in `each'
vendor/plugins/advanced_roadmap/app/views/versions/_total.html.erb:9
vendor/plugins/advanced_roadmap/app/views/versions/index.html.erb:7
/usr/lib/ruby/1.8/rack/head.rb:9:in `call'
/usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99
Rendering /var/lib/redmine/public/500.html (500 Internal Server Error)
Updated by Emilio González Montaña over 14 years ago
What is your Redmine version?
Are the other plugins patching the Issue model also?
Updated by Emilio González Montaña over 14 years ago
- Subject changed from Undefined method `rest_hours' to Undefined method rest_hours
Updated by William Roush over 14 years ago
Redmine 1.1.1.stable (MySQL)
I'll check and see if redmine_work_time makes any modifications to the issue model.