Sha256: 6e5c2b145c2d7adea77af3f04101a2020ad6ae38fedefc7056b0787304afb2e3

Contents?: true

Size: 505 Bytes

Versions: 187

Compression:

Stored size: 505 Bytes

Contents

class Lalala::Public::PagesController < ::ApplicationController

  before_filter :load_page

  def show
    Rails.logger.debug "SCRIPT_NAME: #{request.env['SCRIPT_NAME'].inspect}"
    Rails.logger.debug "PATH_INFO:   #{request.env['PATH_INFO'].inspect}"
    Rails.logger.debug "page path:   #{@page.ancestry_path.inspect}"
  end

private

  def load_page
    @page = env['lalala.page']

    unless @page
      raise ActionController::RoutingError.new("No page for path: "+request.path)
    end
  end

end

Version data entries

187 entries across 187 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.425 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.420 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.419 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.418 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.417 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.416 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.415 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.414 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.413 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.412 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.411 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.410 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.409 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.407 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.408 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.398 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.397 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.396 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.395 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.394 app/controllers/lalala/public/pages_controller.rb