这是我的config/application.rb
文件,不知何故我让我的 Rails 不再输出Set-Cookie
标题,所有会话机制都失败了。
怎么了?
module KAPP
class Application < Rails::Application
config.cache_store = :dalli_store, 'localhost'
{ :namespace => 'fxs', :expires_in => 1.day, :compress => true }
config.action_mailer.default_url_options = {:host => "k.tv"}
config.action_controller.default_url_options = {:host => "k.tv"}
config.time_zone = 'Beijing'
config.i18n.default_locale = 'zh-CN'
config.i18n.available_locales = ['zh-CN', :en]
config.encoding = "utf-8"
config.filter_parameters += [:password]
config.active_record.schema_format = :sql
config.active_record.whitelist_attributes = true
config.assets.enabled = true
config.assets.version = '1.0'
config.assets.prefix = ""
config.action_controller.asset_host = nil
config.active_support.escape_html_entities_in_json = true
end
end