Commit fccf35555876c9c58a6372981af165e84db68210

Authored by Victor Costa
1 parent 8c6bca29

rails3: fix tags_block

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/models/tags_block.rb
@@ -2,6 +2,7 @@ class TagsBlock < Block @@ -2,6 +2,7 @@ class TagsBlock < Block
2 2
3 include TagsHelper 3 include TagsHelper
4 include BlockHelper 4 include BlockHelper
  5 + include ActionView::Helpers
5 include Rails.application.routes.url_helpers 6 include Rails.application.routes.url_helpers
6 7
7 settings_items :limit, :type => :integer, :default => 12 8 settings_items :limit, :type => :integer, :default => 12
@@ -31,7 +32,7 @@ class TagsBlock < Block @@ -31,7 +32,7 @@ class TagsBlock < Block
31 end 32 end
32 33
33 url = is_env ? {:host=>owner.default_hostname, :controller=>'search', :action => 'tag'} : 34 url = is_env ? {:host=>owner.default_hostname, :controller=>'search', :action => 'tag'} :
34 - owner.public_profile_url.merge(:controller => 'profile', :action => 'tags') 35 + owner.public_profile_url.merge(:controller => 'profile', :action => 'content_tagged')
35 tagname_option = is_env ? :tag : :id 36 tagname_option = is_env ? :tag : :id
36 37
37 block_title(title) + 38 block_title(title) +