edavis10/redmine_email_watchers — Issue #1: ActionView::TemplateError (undefined method `email_watcher_user_path' for #<ActionView::Base:0x7f4fa84fc230>)
Author: ynezz
Created: 2011-12-02 13:50:58+00:00
State: open

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:

```code
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 #) on line #49 of app/views/users/index.rhtml:
46:	<%= format_time(user.last_login_on) unless user.last_login_on.nil? %>
47:
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:
51:

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.