The Great SEO Revamp of 2019 #59

Closed
tadhgboyle wants to merge 18 commits from master into master
Showing only changes of commit 12dce42ef2 - Show all commits

View File

@@ -2,6 +2,19 @@ class ForumsController < ApplicationController
before_filter :check_permission, only: [:show, :edit, :update, :destroy]
add_breadcrumb "Forum", :forums_path
def index
@forum = Forum.all
end
def show
@forum = Forum.friendly.find(params[:id])
add_breadcrumb @forum, forum_path(@forum)
end
end
def index
@groups = Forumgroup.select {|g| g.can_view?(current_user) }
@groups.sort_by!{ |g| g.position || 0 }