Sha256: 1d383519904c2aaccdb1dd78effeb490b0fd2a25f29e39c1695cdb3a3d6063e7

Contents?: true

Size: 446 Bytes

Versions: 18

Compression:

Stored size: 446 Bytes

Contents

class FrontController < ApplicationController
  
  TEMPLATES = %w(responsive-slidebar fixed-header)
  
  def start
    Rails.logger.info "Front - Start"
  end
  
  def templates
    Rails.logger.info "Front - templates"
    if params[:template] && TEMPLATES.include?(params[:template].to_s)
      render "templates/#{params[:template]}", layout: "blank"
    else
      render "templates/responsive-slidebar", layout: "blank"
    end
  end
  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
magic_stylez-0.0.0.36 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.35 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.34 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.33 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.32 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.31 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.30 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.29 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.28 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.27 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.26 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.25 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.24 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.23 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.22 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.21 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.20 test/dummy/app/controllers/front_controller.rb
magic_stylez-0.0.0.19 test/dummy/app/controllers/front_controller.rb