0
def r_return
if var
begin
User.transaction do
#code here
end
render :text => html
return
rescue => e
#rescue here
end
else
redirect_to root_path
end
#it has to been render at the end?
#render :text => html
end
我的代碼有什麼問題?無法呈現它開始...結束塊?或者我失蹤了?呈現文字但仍然丟失模板錯誤
你想做什麼? – s84 2010-08-13 05:34:49
你能顯示相關的日誌輸出嗎? – 2010-08-13 05:36:09