summaryrefslogtreecommitdiff
path: root/app/controllers/pages_controller.rb
blob: c477b7c1464dc5da8bdd40c3d6e2007b06a50e54 (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(/^\/(#{MATCH_LOCALE}\/)?/, '')
  end

end