Class: ForumsController
- Inherits:
-
ForumBaseController
- Object
- ReaderActionController
- ForumBaseController
- ForumsController
- Defined in:
- app/controllers/forums_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |