-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #11379: Made the subtopics method #11380
Changes from 1 commit
669acd0
d195a96
31ba768
9d73d03
3ab03cc
908f3ee
e76687d
c7cc324
f4d90c8
e220ca5
517175f
11cdb1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -568,4 +568,8 @@ def fetch_counts | |
end | ||
|
||
def topic_tree; end | ||
|
||
def subtopics | ||
Tag.find_by(name: params[:subtopic]) | ||
jywarren marked this conversation as resolved.
Show resolved
Hide resolved
|
||
render "tags/subtopic", layout: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, so here, i think we also have to actually make the partial template, at: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jywarren : <% @subtopics.each do |subtopic| %>
<h1><%= subtopic %></h1>
<% end %> However, it gives an error - Is it because the tags "one" or "two" do not have any specified subtopics as such? But it doesn't seem so, since I just tried adding a check to see if @subtopics is nil. Let me know your thoughts on this! Thanks! |
||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty line detected at class body end.