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
what's the wrong with my code? can't render it a begin...end block? or something I been missing?