sukima / redmine_equipment_status_viewer

Redmine plugin: Allows admins to make a list of equipment and track if they are inservice or not

Home Page:http://sukima.github.com/redmine_equipment_status_viewer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

500 server error with new equipment

sukima opened this issue · comments

Reported by Jason Donnelly:

I have followed your instructions on how to install the plugin and
everything seems fine until you click on New Equipment Assest. Redmine
throws a 500 Internal error and the production.log file prints this.

Processing EquipmentAssetsController#new (at 2012-04-21 15:15:12) [GET]
 Parameters: {"controller"=>"equipment_assets", "action"=>"new"}
Rendering template within layouts/base
Rendering equipment_assets/new

ActionView::TemplateError (undefined method `errors' for
#<Hash:0x00000005480968>) on line #2 of
vendor/plugins/redmine_equipment_status_viewer/app/views/equipment_assets/_form.rhtml:
1: <% form_for(@equipment_asset) do |f| %>
2:   <%= f.error_messages %>
3:   <div class="pluginESV_formfield">
4:     <%= f.label :name %><br />
5:     <%= f.text_field :name %>

   app/helpers/application_helper.rb:954:in `block in error_messages_for'
   app/helpers/application_helper.rb:954:in `map'
   app/helpers/application_helper.rb:954:in `error_messages_for'
   vendor/plugins/redmine_equipment_status_viewer/app/views/equipment_assets/_form.rhtml:2:in
`block in _run_rhtml_vendor47plugins47redmine_equipment_status_viewer47app47views47equipment_assets47_form46rhtml_locals_form_object'
   vendor/plugins/redmine_equipment_status_viewer/app/views/equipment_assets/_form.rhtml:1:in
`_run_rhtml_vendor47plugins47redmine_equipment_status_viewer47app47views47equipment_assets47_form46rhtml_locals_form_object'
   vendor/plugins/redmine_equipment_status_viewer/app/views/equipment_assets/new.rhtml:4:in
`_run_rhtml_vendor47plugins47redmine_equipment_status_viewer47app47views47equipment_assets47new46rhtml'
   vendor/plugins/redmine_equipment_status_viewer/app/controllers/equipment_assets_controller.rb:59:in
`new'
   <internal:prelude>:10:in `synchronize'
   passenger (3.0.12)
lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
   passenger (3.0.12)
lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
   passenger (3.0.12)
lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
   passenger (3.0.12)
lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'
   passenger (3.0.12)
lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`block in handle_spawn_application'
   passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in `safe_fork'
   passenger (3.0.12)
lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'
   passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
   passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
   passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in `start'
   passenger (3.0.12)
lib/phusion_passenger/classic_rails/application_spawner.rb:149:in
`start'
   passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:219:in
`block (2 levels) in spawn_rails_application'
   passenger (3.0.12)
lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
   passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:214:in
`block in spawn_rails_application'
   passenger (3.0.12)
lib/phusion_passenger/abstract_server_collection.rb:82:in `block in
synchronize'
   <internal:prelude>:10:in `synchronize'
   passenger (3.0.12)
lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
   passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
   passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
   passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
   passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
   passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
   passenger (3.0.12) helper-scripts/passenger-spawn-server:99:in `<main>'

Rendering /var/www/html/redmine/public/500.html (500 Internal Server Error)

I have rQRcode installed and everything else in redmine runs fine. Is
there anything in that code that instantly springs to your mind for a
fix. I sadly do not know enough about ruby to even begin to
troubleshoot.