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.359 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.358 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.357 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.356 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.355 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.354 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.351 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.350 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.349 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.344 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.343 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.342 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.341 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.340 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.339 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.336 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.334 app/controllers/lalala/public/pages_controller.rb
lalala-4.1.0.dev.332 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.331 app/controllers/lalala/public/pages_controller.rb
lalala-4.0.0.dev.329 app/controllers/lalala/public/pages_controller.rb