Sha256: 884b1de0c5ff8aacb4788b35ee057f67803b51f371263ab098cfd3e2a5c4736d

Contents?: true

Size: 363 Bytes

Versions: 28

Compression:

Stored size: 363 Bytes

Contents

class Site::SiteController < ApplicationController
  include Pageable
  rescue_from ActiveRecord::RecordNotFound, :with => :render_404
  authorize :scope => "site", :resourceful => false
  
  page :home, "/" do
    
  end
  
  private
  def render_404
    render :file => Rails.root.join("public", "404.html"), :layout => false, :status => :not_found
  end
  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
fullstack-cms-0.2.21 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.20 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.19 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.18 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.17 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.16 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.15 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.14 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.13 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.12 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.11 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.10 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.9 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.8 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.7 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.6 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.5 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.4 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.3 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
fullstack-cms-0.2.2 lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb