1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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