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


class PagesController < ApplicationController
  respond_to :html

  def show
    @show_navigation = false
    render page_name
  end

  private

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

end