lol it works now

This commit is contained in:
Andrew Brown 2018-12-18 22:55:39 -06:00
parent c120156e86
commit 7f06b7a7ea
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class ForumsLinkbuilderService < Service
def self.worldbuilding_url(page_type)
self.content_to_url_map.fetch(page_type, nil)
self.content_to_url_map.fetch(page_type.name.to_sym, nil)
end
def self.content_to_url_map

View File

@ -48,7 +48,7 @@
<ul class="tabs tabs-transparent">
<% @navbar_actions.each do |action| %>
<li class="tab">
<a class="white-text <%= 'active' if action[:href] == request.env['PATH_INFO'] %>" href="<%= action[:href] %>" target="<%= action[:target] || '_self' %>">
<a class="white-text <%= 'active' if action[:href] == request.env['REQUEST_PATH'] %>" href="<%= action[:href] %>" target="<%= action[:target] || '_self' %>">
<%= action[:label] %>
</a>
</li>