app\models\setting.rb :165 # fixed domain url in development. tantantan's bug if Rails.env.development? methods.map do |m| define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/ end end 程序部分链接中制定了subdomain参数,使链接在二级域名中来回跳转。 为了开发方便,使之功能在development模式下失效。 # => nyan ================================================================================