Project

General

Profile

ToDo lists plugin

Added by david lyons about 15 years ago

Hello people,

Ive developed a very usable little ToDo lists plugin for Redmine, sort of inspired by Basecamp. It allows you to create nestable per-project todo lists, as well as a general, personal ToDo list for stuff not related to a particular project.
It supports:
  • drag & drop reordering of lists
  • Ability to tie a todo item to an Issue
  • Ability to assign todos to other users
  • Ability to assign a due date to Todo items

Intended use is for developers - We found that Issues(bug/feature request) are often too coarse and can represent too large a unit of work to use it to track your day-to-day work. For example - there might be a feature request to say 'add a new screen with the ability to search users by various fields, and calculate their blah blah blah'. We use the todo lists to keep track of all the things we have to do(design, implement each sub feature, etc) to implement that Feature.

I did intend to add some basic Scrumm-ish workflow management to the todo lists; however it seems now that there are other Scrumm plugins around now built by larger teams than me that are more sophisticated than I could probably achieve in my spare time.

Anyway, check it out at http://github.com/dalyons/redmine-todos-scrum-plugin/tree/master and see if it warrants inclusion on the Wiki plugins list :). Any feedback, suggestions etc, very welcome.


Replies (146)

RE: ToDo lists plugin - Added by shadow shadow over 14 years ago

I installed the ruby-debug and another error pop up.

Processing TodosController#index (for 137.132.3.11 at 2009-10-05 06:35:56) [GET]
Session ID: 0c51e2049f0e78f1549ed3884e46605c
Parameters: {"project_id"=>"business", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index

ActionView::TemplateError (Missing template todos/_todo.html in view path /var/www/public_html/mydomain.com/public/redmine/vendor/plugins/redmine_todos_plugin/app/views:/var/www/public_html/mydomain.com/public/redmine/vendor/plugins/redmine_status/app/views:/var/www/public_html/mydomain.com/public/redmine/app/views) on line #2 of todos/_todo_li.html.erb:
1: <li id=todo_<%=todo.id%> >
2: <%= render :partial => 'todos/todo.html', :locals => {:todo => todo, :editable => editable} %>
3: </li>

vendor/rails/actionpack/lib/action_view/template.rb:85:in `raise_missing_template_exception'
vendor/rails/actionpack/lib/action_view/template.rb:78:in `set_extension_and_file_name'
vendor/rails/actionpack/lib/action_view/template.rb:15:in `initialize'
vendor/rails/actionpack/lib/action_view/partial_template.rb:8:in `initialize'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `new'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_todo_li.html.erb:2:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo_li46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:7:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `each'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/index.html.erb:19:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47index46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1167:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:65:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb:183:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server:61

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

RE: ToDo lists plugin - Added by david lyons over 14 years ago

Ok, update to what's on github now(git pull), and try again.

What version of Rails are you running? Because it was working on mine(2.3.4).
Anyway, let me know if it works now on your version.

RE: ToDo lists plugin - Added by shadow shadow over 14 years ago

I have updated the plugin again.
I am running on Rails 2.3.4
I think the previous problem was due to the latest Redmine version.
I have rolled back to the previous version.

However now whenever there is content in the DB, i.e. once I added something to the ToDo list, I will get an error.

Here's the latest error.

Processing TodosController#index (for 137.132.3.11 at 2009-10-05 13:31:33) [GET]
Session ID: f9444e981b85ef7091fc593a8014f9db
Parameters: {"project_id"=>"marketing", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index

ActionView::TemplateError (wrong number of arguments (2 for 1)) on line #25 of todos/_todo.html.erb:
22: :html => {:class => todo_class}
23: )
24: ><= link_to_remote( image_tag('add.png', :title => l(:todo_add_child_tooltip)),
25: :url => new_polymorphic_url( [parent_object,:todo], :parent_id => todo, :issue_id => todo_issue), :method => :get,
26:
27: #{ :controller => "#{'projects/' + todo.project.identifier.to_s + '/' if todo.project}#{'issues/' + todo_issue.to_s + '/' if todo_issue}#{todos_controller}/#{todo.id}", :action => 'new' },
28: :html => {:class => 'icon-new'},

vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `new_polymorphic_url'
vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_todo_li.html.erb:2:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo_li46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:7:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `each'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/index.html.erb:19:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47index46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1167:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:65:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb:183:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server:61

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

RE: ToDo lists plugin - Added by david lyons over 14 years ago

Can I help you resolve this via email? Its more convenient for me & won't fill up the thread. My email is dalyons a.t. gmail.com

Alternatively you could log it as a bug/issue on my github project and follow it up that way.

I obviously dont have this issue on my install :), so id like to help you resolve it incase its a widespread issue.

RE: ToDo lists plugin - Added by shadow shadow over 14 years ago

Sorry, dont mean to fill up the thread.

I have send you an email but no response from you.

Anyway, I would like to check with you what is the supported version for the Todo lists plugin?

I am current running Redmine 0.8.5, Rails version 2.3.4, Ruby version 1.8.6
Somehow I am unable to run the rake db:migrate_plugins RAILS_ENV="production" if I am using 0.8.5. Hence, it won't even install.

However, if I am back to Redmine 0.8.4, Rails version 2.2.2, Ruby version 1.8.6, I will get the error

Processing TodosController#create (for 137.132.3.6 at 2009-10-08 21:30:13) [POST]
Session ID: a9d10df6147decd89c1a5262596601e0
Parameters: {"project_id"=>"resources", "commit"=>"Create Todo", "action"=>"create", "controller"=>"todos", "todo"=>{"text"=>"Start CRM", "issue_id"=>"", "assigned_to_id"=>"3", "parent_id"=>"", "due"=>"2009-10-11"}}

ActionView::MissingTemplate (Missing template todos/_todo_li.html in view path /var/www/public_html/mydomain/public/redmine/vendor/plugins/redmine_todos_plugin/app/views:/var/www/public_html/mydomain/public/redmine/vendor/plugins/redmine_status/app/views:/var/www/public_html/mydomain/public/redmine/app/views):
/vendor/rails/actionpack/lib/action_view/template.rb:85:in `raise_missing_template_exception'
/vendor/rails/actionpack/lib/action_view/template.rb:78:in `set_extension_and_file_name'
/vendor/rails/actionpack/lib/action_view/template.rb:15:in `initialize'
/vendor/rails/actionpack/lib/action_view/partial_template.rb:8:in `initialize'
/vendor/rails/actionpack/lib/action_view/partials.rb:110:in `new'
/vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
/vendor/rails/actionpack/lib/action_controller/base.rb:908:in `send!'
/vendor/rails/actionpack/lib/action_controller/base.rb:908:in `render_with_no_layout'
/vendor/rails/actionpack/lib/action_controller/layout.rb:259:in `render_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
/vendor/rails/actionpack/lib/action_controller/base.rb:934:in `render_to_string'
/vendor/plugins/redmine_todos_plugin/app/controllers/todos_controller.rb:100:in `create'
/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:65:in `perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb:183:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server:61

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

Processing MytodosController#index (for 137.132.3.6 at 2009-10-08 21:30:18) [GET]
Session ID: a9d10df6147decd89c1a5262596601e0
Parameters: {"action"=>"index", "controller"=>"mytodos"}
Rendering template within layouts/base
Rendering common/403 (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 0.08401 (11 reqs/sec) | Rendering: 0.05600 (66%) | DB: 0.00400 (4%) | 403 Forbidden [http://redmine.mydomain/mytodos]

Processing TodosController#index (for 137.132.3.6 at 2009-10-08 21:30:21) [GET]
Session ID: a9d10df6147decd89c1a5262596601e0
Parameters: {"project_id"=>"resources", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index

ActionView::TemplateError (wrong number of arguments (2 for 1)) on line #25 of todos/_todo.html.erb:
22: :html => {:class => todo_class}
23: )
24: ><= link_to_remote( image_tag('add.png', :title => l(:todo_add_child_tooltip)),
25: :url => new_polymorphic_url( [parent_object,:todo], :parent_id => todo, :issue_id => todo_issue), :method => :get,
26:
27: #{ :controller => "#{'projects/' + todo.project.identifier.to_s + '/' if todo.project}#{'issues/' + todo_issue.to_s + '/' if todo_issue}#{todos_controller}/#{todo.id}", :action => 'new' },
28: :html => {:class => 'icon-new'},

vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `new_polymorphic_url'
vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_todo_li.html.erb:2:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo_li46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:7:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `each'
vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
vendor/plugins/redmine_todos_plugin/app/views/todos/index.html.erb:19:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47index46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1167:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:65:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb:183:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server:61

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

RE: ToDo lists plugin - Added by Łukasz Rżanek over 14 years ago

diff --git a/init.rb b/init.rb
index b635bd7..bce1b56 100644
--- a/init.rb
++ b/init.rb
@ -9,7 +9,7 @ require 'dispatcher'
Dispatcher.to_prepare do
require_dependency 'project'
require_dependency 'user'
- require_dependency 'application'
require_dependency 'application_controller'
#This file loads some associations into the core redmine classes, like associations to todos.
require 'patch_redmine_classes'
require 'todo_issues_controller_patch'

RE: ToDo lists plugin - Added by david lyons over 14 years ago

shadow shadow, i replied to you via email eventually :)

If anyone is getting the 'wrong number of arguments (2 for 1)' error, it means their Rails version is too old. I have taken advantage of some of the new polymorphic url functionality introduced in Rails 2.2.1, thus you need at least 2.2.1 to run it.

Lukasz Salwinski, im not sure what message you are trying to convey with that diff - what problem does that resolve?

RE: ToDo lists plugin - Added by Łukasz Rżanek over 14 years ago

David Crow - this patch I had to create when I got last version from repository. The problem is still with version change, the application became application_controller.

RE: ToDo lists plugin - Added by Daniel Brauer over 14 years ago

Hi,

I'm trying to install the ToDo plugin. But when clicking "My todos" in redmine I get the error: "403 You are not authorized to access this page."

I got the head of the git repository and copied all files to /var/data/redmine/vendor/plugins/redmine_todos_plugin

then I exectued:

admin@redmine1:~$ cd /var/data/redmine/vendor/plugins
admin@redmine1:/var/data/redmine/vendor/plugins$ rake db:migrate_plugins RAILS_ENV=production --trace
(in /var/data/redmine)
** Invoke db:migrate_plugins (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate_plugins
Migrating engines...
Migrating actionwebservice...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating classic_pagination...
Migrating coderay-0.7.6.227...
Migrating gloc-1.1.0...
Migrating gravatar...
Migrating redmine_todos_plugin...
Migrating rfpdf...
Migrating ruby-net-ldap-0.0.4...
Migrating stuff_to_do_plugin...

and rebooted the system.

We are using a redmine jumpbox with
redmine 0.8.5
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

"rails -v" does not work, unfortunately. So I can't say what version is running.

Please help.

Thanks,
Daniel

contents of /var/data/redmine/log/production.log is:

...
Processing AdminController#index (for 192.168.42.90 at 2009-10-19 11:05:00) [GET]
  Session ID: eb1882744a8929af74d730c1d4749715
  Parameters: {"action"=>"index", "controller"=>"admin"}
Rendering template within layouts/base
Rendering admin/index
Completed in 0.05720 (17 reqs/sec) | Rendering: 0.02986 (52%) | DB: 0.00216 (3%) | 200 OK [http://192.168.1.201/admin]

Processing MytodosController#index (for 192.168.42.90 at 2009-10-19 11:05:02) [GET]
  Session ID: eb1882744a8929af74d730c1d4749715
  Parameters: {"action"=>"index", "controller"=>"mytodos"}
Rendering template within layouts/base
Rendering common/403 (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 0.03537 (28 reqs/sec) | Rendering: 0.01851 (52%) | DB: 0.00340 (9%) | 403 Forbidden [http://192.168.1.201/mytodos]

Processing MytodosController#index (for 192.168.42.90 at 2009-10-19 11:05:06) [GET]
  Session ID: eb1882744a8929af74d730c1d4749715
  Parameters: {"action"=>"index", "controller"=>"mytodos"}
Rendering template within layouts/base
Rendering common/403 (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 0.02195 (45 reqs/sec) | Rendering: 0.01092 (49%) | DB: 0.00113 (5%) | 403 Forbidden [http://192.168.1.201/mytodos]

Processing MytodosController#index (for 192.168.42.90 at 2009-10-19 11:05:10) [GET]
  Session ID: eb1882744a8929af74d730c1d4749715
  Parameters: {"action"=>"index", "controller"=>"mytodos"}
Rendering template within layouts/base
Rendering common/403 (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 0.02141 (46 reqs/sec) | Rendering: 0.00978 (45%) | DB: 0.00101 (4%) | 403 Forbidden [http://192.168.1.201/mytodos]

Processing MytodosController#index (for 192.168.42.90 at 2009-10-19 11:05:12) [GET]
  Session ID: eb1882744a8929af74d730c1d4749715
  Parameters: {"action"=>"index", "controller"=>"mytodos"}
Rendering template within layouts/base
Rendering common/403 (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 0.11492 (8 reqs/sec) | Rendering: 0.10319 (89%) | DB: 0.00276 (2%) | 403 Forbidden [http://192.168.1.201/mytodos]

Processing SysController#wsdl (for 127.0.0.1 at 2009-10-19 11:06:01) [GET]
  Session ID: 1f4f43ad394508a96fa9fc2ae9b61e56
  Parameters: {"action"=>"wsdl", "controller"=>"sys"}
Sending data 
Completed in 0.01740 (57 reqs/sec) | Rendering: 0.00023 (1%) | DB: 0.00000 (0%) | 200 OK [http://localhost/sys/service.wsdl]

...

RE: ToDo lists plugin - Added by Rafael Martins over 14 years ago

Daniel Brauer wrote:

Hi,

I'm trying to install the ToDo plugin. But when clicking "My todos" in redmine I get the error: "403 You are not authorized to access this page."

I got the head of the git repository and copied all files to /var/data/redmine/vendor/plugins/redmine_todos_plugin

did you chown to www-data(or apache user like)? give the same permission/user owner that redmine root.

RE: ToDo lists plugin - Added by Daniel Brauer over 14 years ago

I've done this:

admin@redmine1:~$ cd /var/data/redmine/vendor/plugins
admin@redmine1:/var/data/redmine/vendor/plugins$ sudo chown -R www-data redmine_todos_plugin
admin@redmine1:/var/data/redmine/vendor/plugins$ cd redmine_todos_plugin                    
admin@redmine1:/var/data/redmine/vendor/plugins/redmine_todos_plugin$ ls -al
total 52
drwxr-xr-x  9 www-data admin    4096 Oct 19 10:48 .
drwxr-xr-x 21 admin    www-data 4096 Oct 19 10:47 ..
-rw-r--r--  1 www-data admin    5239 Oct 19 10:34 README.rdoc
drwxr-xr-x  6 www-data admin    4096 Oct 19 10:34 app
drwxr-xr-x  4 www-data admin    4096 Oct 19 10:34 assets
drwxr-xr-x  3 www-data admin    4096 Oct 19 10:34 config
drwxr-xr-x  3 www-data admin    4096 Oct 19 10:34 db
-rw-r--r--  1 www-data admin    2022 Oct 19 10:34 init.rb
drwxr-xr-x  2 www-data admin    4096 Oct 19 10:34 lang
drwxr-xr-x  2 www-data admin    4096 Oct 19 10:34 lib
-rw-r--r--  1 www-data admin    1172 Oct 19 10:34 routes.rb
drwxr-xr-x  5 www-data admin    4096 Oct 19 10:34 test
admin@redmine1:/var/data/redmine/vendor/plugins/redmine_todos_plugin$ 

Same result.
Regards Daniel

RE: ToDo lists plugin - Added by david lyons over 14 years ago

At the risk of sounding patronizing, have you set up the redmine permissions for the Todos plugin?
You didnt mention doing that step in your first post.

Administration -> Roles and Permissions -> Permissions Report .... scroll down to 'Todo lists' and check you have set up the appropriate permissions for people there.

RE: ToDo lists plugin - Added by Daniel Brauer over 14 years ago

hey David,
I didn't realize that thanks!

I have intslled the plugin to /var/data/redmine/vendor/plugins\redmine_todos_plugin and chowned the directory to admin: www-data

drwxr-xr-x  4 admin www-data 4096 Sep 21 03:57 gravatar
drwxr-xr-x  9 admin www-data 4096 Oct 21 08:02 redmine_todos_plugin
drwxr-xr-x  4 admin www-data 4096 Sep 21 03:57 rfpdf

I set the permissions for all users and get the error:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.

Looking at the production log I see:

ActionView::TemplateError (undefined method `user_todos_path' for #<ActionView::Base:0xb65ad898>) on line #11 of vendor/plugins/redmine_todos_plugin/app/views/todos/_new_todo.html.erb:
8: %>

9: 

10: <div class="new-todo">

11:   <% remote_form_for [parent_object,todo],

12:       #:todo, todo, :url => {:controller => "todos", :action=> "create", :project_id => todo.project },

13:       #:update =>  TodosController::UL_ID + todo.parent_or_root_id, :position => :bottom,

14:       :success => "elements['todo[text]'].activate().clear();" do |f| %>

    vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:105:in `send!'
    vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:105:in `polymorphic_url'
    vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:112:in `polymorphic_path'
    vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:269:in `apply_form_for_options!'
    vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:376:in `remote_form_for'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_new_todo.html.erb:11:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_new_todo46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
...

RE: ToDo lists plugin - Added by Scott Selberg over 14 years ago

I'm having an identical issue to Daniel Brauer

ActionView::TemplateError (undefined method `user_todos_path' for #<ActionView::Base:0xb7632d08>) on line #11 of vendor/plugins/redmine_todos_plugin/app/views/todos/_new_todo.html.erb:

This error happens when I try to access the user or project to-do pages.

Using
ruby 1.8.6 (patchlevel 0)
rails 2.3.4
redmine 0.8.4.stable according to the info, althgouh I downloaded and installed 0.8.5

Any ideas?

-Scott

RE: ToDo lists plugin - Added by Grzegorz Miklaszewski over 14 years ago

There are two routes files in the plugin folder:
/vendor/plugins/redmine_todos_plugin/routes.rb
/vendor/plugins/redmine_todos_plugin/config/routes.rb

In the first one which is actually working there is no todo resource with "user_" prefix. It's in the second file. You can copy it and that will work.

RE: ToDo lists plugin - Added by Daniel Brauer over 14 years ago

Hey Grzegorz,
thanks for the workaround you described above.
Now it works!
Daniel.

RE: ToDo lists plugin - Added by Bruno Payen over 14 years ago

I've installed ToDo lists plugin but have an issue with localization.

  • Debian etch 4.0
  • ToDo List : 0.0.3.6
  • Rails: 2.3.4
  • Redmine: 0.8.6.devel.3022 (MySQL)

RE: ToDo lists plugin - Added by Bruno Payen over 14 years ago

Bruno Payen wrote:

I've installed ToDo lists plugin but have an issue with localization.

  • Debian etch 4.0
  • ToDo List : 0.0.3.6
  • Rails: 2.3.4
  • Redmine: 0.8.6.devel.3022 (MySQL)

RE: ToDo lists plugin - Added by Bruno Payen over 14 years ago

I've installed ToDo lists plugin but have an issue with localization (redmine locale in french).

I've got a translation missing: fr, project message in the main project menu (Todo Link) and other messages are not translated (from english).
I've checked 2 points:

1) Name of the pugin install directory: redmine_todos_plugin

2) Strings and localization files are existing
/home/extranet/redmine/vendor/plugins/redmine_todos_plugin/lang/en.yml
/home/extranet/redmine/vendor/plugins/redmine_todos_plugin/lang/fr.yml

My envrinonment:
  • Debian etch 4.0
  • ToDo List : 0.0.3.6
  • Rails: 2.3.4
  • Redmine: 0.8.6.devel.3022 (MySQL)

Sorry for the 3 posts, i don't know how to edit my own posts ?
Regards

RE: ToDo lists plugin - Added by Mischa The Evil over 14 years ago

Bruno Payen wrote:

I've installed ToDo lists plugin but have an issue with localization (redmine locale in french).
...
My envrinonment:
  • Debian etch 4.0
  • ToDo List : 0.0.3.6
    ...

Try the latest available release (0.0.3.9) of the plugin which has this issue fixed iirc...

Sorry for the 3 posts, i don't know how to edit my own posts ?

You can't due to the permission restrictions of Redmine which powers redmine.org...

Kind regards,

Mischa.

RE: ToDo lists plugin - Added by Bruno Payen over 14 years ago

Thank you Misha,
But how to manage to download latest version (0.0.3.9) ?
Seems only "old" versions like mine are available via tar or zip package on Github.
I don't know how to install using the git link: git://github.com/dalyons/redmine-todos-scrum-plugin.git

Regards

RE: ToDo lists plugin - Added by Mischa The Evil over 14 years ago

Bruno Payen wrote:

But how to manage to download latest version (0.0.3.9) ?

You can use the third button (Download) after the repo name at http://github.com/dalyons/redmine-todos-scrum-plugin. This will let you download the master-branch at current HEAD.
Because of the fact that the feature currently is offline at my place I'll attach a packaged file from the latest master branch.

Seems only "old" versions like mine are available [...]

This is due to the fact that the author haven't uploaded packages of the most recent versions already for awhile.

I don't know how to install using the git link: git://github.com/dalyons/redmine-todos-scrum-plugin.git

To utilize such git-link you'll need to have git installed on the machine.

Regards,

Mischa.

RE: ToDo lists plugin - Added by Bruno Payen over 14 years ago

Thank you very much Mischa !
I've insalled the new version.

RE: ToDo lists plugin - Added by Babar O'Cap over 14 years ago

Hi Bruno,

You can download my redmine-todos-scrum-plugin version at http://github.com/nowhereman/redmine-todos-scrum-plugin/archives/0.0.3.8.1
It's a very stable version, I used it in production since 3 months (only tested on Rails 2.1.x and 2.2.x).
It's fully translated in French, because I'm French.

Cordialement,
Babar.

(51-75/146)