This commit is contained in:
yanxd 2014-04-01 20:05:14 +08:00
parent 233901577f
commit 66e655a19e
2 changed files with 12 additions and 0 deletions

11
ReadMe接手必读.txt Normal file
View File

@ -0,0 +1,11 @@
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
================================================================================

View File

@ -87,6 +87,7 @@ class MemosController < ApplicationController
respond_to do |format|
format.html # show.html.erb
format.json { render json: @memo }
format.xml { render xml: @memo }
end
end