diff options
author | elijah <elijah@riseup.net> | 2014-01-21 13:54:45 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-01-23 11:37:49 -0800 |
commit | 87383e624855def55e13d238b2f20b79c418c1d9 (patch) | |
tree | bfba7820ab8ed90b433c5e0fc56def4c7ea523fc /app/controllers | |
parent | 01941b7d930c581a6684f6b939b3ae2f62bd832e (diff) |
added default pricing, privacy policy and tos pages.
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 |