Class: ForumsController

Inherits:
ForumBaseController show all
Defined in:
app/controllers/forums_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
# File 'app/controllers/forums_controller.rb', line 3

def index
  @forums = Forum.visible_to(current_reader).paginate(pagination_parameters)
  render_page_or_feed
end

#showObject



8
9
10
11
12
# File 'app/controllers/forums_controller.rb', line 8

def show
  @forum = Forum.visible_to(current_reader).find(params[:id])
  @topics = @forum.topics.stickyfirst.paginate(pagination_parameters)
  render_page_or_feed
end