Sha256: 2488ee3fda32b24b61c78400dc11629bfdcbee600f4feec90e84f1d39240fc6a
Contents?: true
Size: 808 Bytes
Versions: 16
Compression:
Stored size: 808 Bytes
Contents
# Subclass from main ApplicationController, which will subclass from DmCore #------------------------------------------------------------------------------ class DmEvent::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! rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found private #------------------------------------------------------------------------------ def record_not_found flash[:error] = "The event or registration you were looking for could not be found." redirect_to event_root_path end end
Version data entries
16 entries across 16 versions & 1 rubygems