diff options
author | jessib <jessib@riseup.net> | 2014-01-23 12:05:58 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2014-01-23 12:05:58 -0800 |
commit | d578c07e196cd9758fbf1752a9bb8477c260bb30 (patch) | |
tree | 4dcbef4b1b2ea9dcd52cf98f1bb98b371a93c631 /app/controllers/pages_controller.rb | |
parent | 01941b7d930c581a6684f6b939b3ae2f62bd832e (diff) | |
parent | ce412a9a0ccce22b5b9d90f70369b91d5fc46e4f (diff) |
Merge pull request #135 from elijh/feature/pages
add some static pages
Diffstat (limited to 'app/controllers/pages_controller.rb')
-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 |