From 66e655a19eab72c54aa506795006c0075097ad75 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 1 Apr 2014 20:05:14 +0800 Subject: [PATCH] nothing --- ReadMe接手必读.txt | 11 +++++++++++ app/controllers/memos_controller.rb | 1 + 2 files changed, 12 insertions(+) create mode 100644 ReadMe接手必读.txt diff --git a/ReadMe接手必读.txt b/ReadMe接手必读.txt new file mode 100644 index 000000000..d7c1aa009 --- /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 49e6c1764..a21086da3 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