Archived
undo undo undo
This commit is contained in:
@@ -1,26 +1,11 @@
|
|||||||
class ForumsController < ApplicationController
|
class ForumsController < ApplicationController
|
||||||
|
|
||||||
before_filter :check_permission, only: [:show, :edit, :update, :destroy]
|
before_filter :check_permission, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
class PagesController < ApplicationController
|
|
||||||
|
|
||||||
def robots
|
def robots
|
||||||
respond_to :text
|
respond_to :text
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
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
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|||||||
Reference in New Issue
Block a user