diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/pages_controller.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb new file mode 100644 index 0000000..c477b7c --- /dev/null +++ b/app/controllers/pages_controller.rb @@ -0,0 +1,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 |