Sha256: 5615952b84e3bca15bf6c219f95863cc6bf9745d550345955b3602d19e8b6ba1
Contents?: true
Size: 848 Bytes
Versions: 16
Compression:
Stored size: 848 Bytes
Contents
# Subclass from main ApplicationController, which will subclass from DmCore #------------------------------------------------------------------------------ class DmForum::ApplicationController < ::ApplicationController include ApplicationHelper #--- these are needed to support rendering layouts built for the CMS helper DmCms::RenderHelper helper DmCore::LiquidHelper helper DmCms::PagesHelper include DmCore::RenderHelper #before_filter :authenticate_user! layout 'forum_templates/forum_list' rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found private #------------------------------------------------------------------------------ def record_not_found flash[:error] = "The forum or discussion you were looking for could not be found." redirect_to forum_root_path end end
Version data entries
16 entries across 16 versions & 1 rubygems