Restream / redmine_tagging

Add simple tagging support to Redmine Issues/Wiki pages
113 stars 50 forks source link

undefined method `link_to_project_tag_filter' on Settings tab #44

Open logical-and opened 11 years ago

logical-and commented 11 years ago

ActionView::Template::Error (undefined methodlink_to_project_tag_filter' for #<#:0x000000060312a8>): 10: <% for issue_tag in tags %> 11: 12: 13: <%= link_to_project_tag_filter(@project, issue_tag.name) %> 14: 15: 16: <%= link_to(l(:detach), {:controller => 'issue_tags', :action => 'destroy', :id => issue_tag.id, app/views/common/_tabs.html.erb:24:in block in _app_views_common__tabs_html_erb__3640568420189664632_58651720' app/views/common/_tabs.html.erb:23:ineach' app/views/common/_tabs.html.erb:23:in _app_views_common__tabs_html_erb__3640568420189664632_58651720' app/helpers/application_helper.rb:263:inrender_tabs' app/views/projects/settings.html.erb:3:in _app_views_projects_settings_html_erb___3514565881336922162_51113100'

geraldo7junior commented 10 years ago

I think that is a plugin helper issue. The TaggingHelper module that is defined in app/helpers/tagging_helper.rb isn't correctly included (4 some reason :sweat_smile: ) on application's path.

To 'solve' it, I just included that piece of code on init.rb

require File.expand_path('../app/helpers/tagging_helper', __FILE__)
ActionView::Base.send :include, TaggingHelper

That obviously is not the best solution, but it works for me.