summaryrefslogtreecommitdiff
path: root/app/controllers/pages_controller.rb
blob: e0f39e3f9cca4161a77b341669388237f0521070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Render static pages
#

class PagesController < ApplicationController

  def show
    @show_navigation = false
    render page_name
  end

  private

  def page_name
    request.path.sub(/^\/(#{CommonLanguages.match_available}\/)?/, '')
  end

end