Skip to content

Instantly share code, notes, and snippets.

@nfelsen
Created August 18, 2008 08:01
Show Gist options
  • Save nfelsen/5955 to your computer and use it in GitHub Desktop.
Save nfelsen/5955 to your computer and use it in GitHub Desktop.
Showing forums/_topic.html.erb where line #10 raised:
Mysql::Error: Unknown column 'sections.section_id' in 'where clause': SELECT `forums`.* FROM `forums` INNER JOIN sections ON forums.id = sections.forum_id WHERE ((`sections`.section_id = 6))
Extracted source (around line #10):
7: <p>
8: <%- n = topic.posts.count -%>
9: <%= link_to h(topic.name),
10: forum_path(topic.forum, topic, :posts => n),
11: :class => "show-follow" %>
12: <span class="meta">(<%= pluralize(n, "post") %>)</span>
13: </p>
Trace of template inclusion: /forums/show.html.erb
RAILS_ROOT: /home/nat/Project/neru/insoshi/insoshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment