alexbevi/redmine_knowledgebase — pull request #116 by duanejevon (2012-11-01 14:51:14+00:00)
Title: 3.x testing

Hi @alexbevi: project dependency updates for 3.x branch. Routes now show:

projects/:project_id/articles/:id, and projects/:project_id/categories/:id. Home page is at projects/:project_id/knowledgebase.

I'd appreciate suggestions if you have any on getting the "knowledgebase" into the URLs for 'categories' and 'articles'.

However, these routing changes seems to break new ratings code:

```
Started GET "/projects/cd/articles/3" for xx.xx.xx.xx at 2012-11-01 15:43:04 +0200
Processing by ArticlesController#show as HTML
Parameters: {"project_id"=>"cd", "id"=>"3"}
Current user: duanejevon (id=3)
Rendered plugins/redmine_knowledgebase/app/views/articles/_rating.html.erb (127.6ms)
Rendered plugins/redmine_knowledgebase/app/views/articles/show.html.erb within layouts/base (16025.5ms)
Completed 500 Internal Server Error in 16546ms

ActionView::Template::Error (undefined method `rate_article_url' for #<#:0x000000057f4130>):
12: callback: function(value, link) {
13: $.ajax({
14: type: "POST",
15: url: "<%= rate_article_url(@article) %>",
16: data: {
17: rating: value
18: }
app/helpers/application_helper.rb:1174:in `content_for'
```

Any ideas on how to fix?