Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created September 28, 2011 08:59
Show Gist options
  • Save rubytastic/1247412 to your computer and use it in GitHub Desktop.
Save rubytastic/1247412 to your computer and use it in GitHub Desktop.
class StaticController < ApplicationController
def sub_layout
"right"
end
def show
@page_name = params[:page_name].to_s.gsub(/\W/, '')
@page_name = @page_name + "_" + I18n.locale.to_s
render (@page_name)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment