edavis10 / redmine_email_watchers

Redmine plugin that will add email addresses as watchers to issues (and other objects).
https://projects.littlestreamsoftware.com
Other
11 stars 2 forks source link

ActionView::TemplateError (undefined method `email_watcher_user_path' for #<ActionView::Base:0x7f4fa84fc230>) #1

Open ynezz opened 12 years ago

ynezz commented 12 years ago

Hi,

I'm using this plugin, it works nice, but sometimes I've troubles to view list of users in the admin page. Sometimes it works and sometimes I get following error:

Processing UsersController#index (for 192.168.2.179 at 2011-12-02 10:49:06) [GET]
Parameters: {"action"=>"index", "controller"=>"users"}
Rendering template within layouts/admin
Rendering users/index

ActionView::TemplateError (undefined method `email_watcher_user_path' for #<ActionView::Base:0x7f4fa84fc230>) on line #49 of app/views/users/index.rhtml:
46:     <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
47:     <td class="buttons">
48:             <%= change_status_link(user) %>
49:             <%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %>
50:     </td>
51:   </tr>
52: <% end -%>

    app/views/users/index.rhtml:49:in `_run_rhtml_app47views47users47index46rhtml'
    app/views/users/index.rhtml:38:in `each'
    app/views/users/index.rhtml:38:in `_run_rhtml_app47views47users47index46rhtml'
    app/controllers/users_controller.rb:64:in `index'
    app/controllers/users_controller.rb:61:in `index'
    /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80: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:255:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /var/redmine/redmine-1.2/public/500.html (500 Internal Server Error)
'''

I've looked into it and wanted to fix it myself, but I can't find the source of the error, since I don't know Ruby/Rails that much yet. So at least I report this error :-) I'm using almost stock Redmine 1.2 if it matters. Thanks.
ynezz commented 12 years ago

Hm,

it's quite strange RoR/Ruby error for me, I quite don't get it how is this method email_watcher_user_path generated. What I know for sure is, that if I comment out this line in the view:

<%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %>

then it works fine. It seems, that this error is related to that email_watcher fake user account. Do you have any clue or the pointers where should I look at?

brodock commented 12 years ago

I'm getting the very same error with Redmine 1.3.2