Attempt 1 at breadcrumb

This commit is contained in:
Tadhg
2019-04-21 16:36:37 -07:00
committed by GitHub
parent 12cc37b71b
commit 12dce42ef2

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 }