diff --git a/ReadMe接手必读.txt b/ReadMe接手必读.txt new file mode 100644 index 00000000..d7c1aa00 --- /dev/null +++ b/ReadMe接手必读.txt @@ -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 +================================================================================ diff --git a/app/controllers/memos_controller.rb b/app/controllers/memos_controller.rb index 49e6c176..a21086da 100644 --- a/app/controllers/memos_controller.rb +++ b/app/controllers/memos_controller.rb @@ -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