Commit 64d78a9a240b0bb8d93433d580438a2eb307f623
- Date: Sun Mar 02 22:35:21 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 64d78a9a240b0bb8d93433d580438a2eb307f623
- Tree SHA1: cf553a2db0b4d7ca2f2f24c35163ef165c95ffd6
category-as-sentence links to the right controller
Commit diff
| |   |
| 8 | 8 | |
| 9 | 9 | def linked_tag_list_as_sentence(tags) |
| 10 | 10 | tags.map do |tag| |
| 11 | | link_to(h(tag.name), { :action => :category, :id => tag.name }) |
| 11 | link_to(h(tag.name), { :controller => "projects", :action => "category", :id => tag.name }) |
| 12 | 12 | end.to_sentence |
| 13 | 13 | end |
| 14 | 14 | |
| toggle raw diff |
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -8,7 +8,7 @@ module ApplicationHelper
def linked_tag_list_as_sentence(tags)
tags.map do |tag|
- link_to(h(tag.name), { :action => :category, :id => tag.name })
+ link_to(h(tag.name), { :controller => "projects", :action => "category", :id => tag.name })
end.to_sentence
end
|