edavis10/redmine_blogs — Issue #4: Mysql::Error: Unknown column 'taggings.context'
Author: lolo6tm
Created: 2011-12-08 12:14:46+00:00
State: open

Hi,

just installed your plugin on Redmine 1.2.2 stable 8058.
When i click "Blogs" Tab i get an internal error 500.

Here's redmine's log :

Rendering blogs/index
ActionView::TemplateError (Mysql::Error: Unknown column 'taggings.context' in 'on clause': SELECT count(*) AS count_all FROM `tags` LEFT OUTER JOIN taggings ON tags.id = taggings.tag_id AND taggings.context = 'tags' INNER JOIN blogs ON blogs.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Blog') ) on line #50 of vendor/plugins/redmine_blogs/app/views/blogs/index.rhtml:
47: <div class="box">
48: <h3 class="icon22 icon22-tags"><%=l(:label_tag_cloud)%></h3>
49: <div class="tags">
50:	<% tag_cloud Blog.tag_counts, %w(css1 css2 css3 css4) do |tag, css_class| %>
51:	<%= link_to tag.name, { :action => :show_by_tag, :id => tag.name }, :class => css_class %>
52: <% end %>
53: </div>

Any help would be appreciated, :)

Thx