class ApplicationController < ActionController::Base protect_from_forgery # before_filter :set_locale # # def set_locale # if %{zh en}.include?(params[:locale].to_s) # I18n.locale = params[:locale] # end # end end