blob: 4508450682cb1e6f47a6b54c136545cfa0a4fac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | 
#
# Render static pages
#
class PagesController < ApplicationController
  respond_to :html
  def show
    @show_navigation = false
    render page_name
  rescue ActionView::MissingTemplate
    raise ActionController::RoutingError.new('Not Found')
  end
  private
  def page_name
    request.path.sub(/^\/(#{CommonLanguages.match_available}\/)?/, '')
  end
end
  |