periodically_ajax_tag_controller.rb

来自「RubyonRailsC.zip ruby on rails的源码」· RB 代码 · 共 16 行

RB
16
字号
class PeriodicallyAjaxTagController < ApplicationController
	before_filter :set_charset 
	
	def set_charset 
		@headers["Content-Type"] = "text/html; charset=GB2312" 
	end
	
	def index
		render(:template => "periodically_ajax_tag/index")
	end
	
	def time_show
		render(:text => Time.now)
	end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?