redmine-todos-scrum-plugin
redmine-todos-scrum-plugin copied to clipboard
Routes wrong in Activity view
They are coming out: /projects/:project_id/todos/show/:id
They should be /project/:project_id/todos/:id
An interim fix is to add this line to the redmine_todos_plugin/config/routes.rb map.connect 'projects/:project_id/todos/show/:id', :controller => "todos", :action => "show"
This is a just a quick fix to not have a broken route. But I was wondering if I can provide a link to Todo for a edit from the Activity view . Have anyone figured that out?
Hi,
I really got problem with this route, it causes 500.html (500 Internal Server Error) with Activity page:
ActionView::TemplateError (No route matches {:controller=>"projects/test/todos", :action=>"show", :id=>#<Todo id: 91, due: "2012-08-01 00:00:00", priority: nil, parent_id: nil, text: "test", author_id: 38, assigned_to_id: 38, issue_id: 950, created_at: "2012-08-01 09:29:49", updated_at: "2012-08-01 09:29:49", done: nil, completed_at: nil, position: 29, todoable_id: 77, todoable_type: "Project">}) on line #54 of app/views/users/show.html.erb:
51: <dt class="<%= e.event_type %>">
52: <span class="time"><%= format_time(e.event_datetime, false) %></span>
53: <%= content_tag('span', h(e.project), :class => 'project') %>
54: <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
55: <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
56: <% end -%>
57: </dl>
Please help me fix this, thanks!
Regards