summaryrefslogtreecommitdiff
path: root/app/controllers/pages_controller.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2014-01-27 10:30:11 -0800
committerjessib <jessib@riseup.net>2014-01-27 10:30:11 -0800
commit7e0573f3347dca6323eae05127849431ecbceb77 (patch)
tree8a6ff58fdcc93493b5a8f332350b0a9292119906 /app/controllers/pages_controller.rb
parent3bfbf0ad20bb5b8e4689fda287cd47738571d10d (diff)
parentd578c07e196cd9758fbf1752a9bb8477c260bb30 (diff)
Merge branch 'develop' into feature/messages_api
Conflicts: users/config/locales/en.yml
Diffstat (limited to 'app/controllers/pages_controller.rb')
-rw-r--r--app/controllers/pages_controller.rb18
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