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 2  
3 3 include TagsHelper
4 4 include BlockHelper
  5 + include ActionView::Helpers
5 6 include Rails.application.routes.url_helpers
6 7  
7 8 settings_items :limit, :type => :integer, :default => 12
... ... @@ -31,7 +32,7 @@ class TagsBlock < Block
31 32 end
32 33  
33 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 36 tagname_option = is_env ? :tag : :id
36 37  
37 38 block_title(title) +
... ...