2012-09-11 59 views

回答

1

它僅覆蓋get方法,即:

alias old_get get 

def get(path) 
    if path == :index 
    old_get '/' 
    else 
    old_get path 
    end 
end 
+0

啊,謝謝,這是簡單的 –