Pla*_*mer 12 ruby ruby-on-rails
我有一个简单的Rails控制器,它不依赖于数据库.
class PingController < ActionController::Base
def ping
render text: 'The service is up'
end
end
Run Code Online (Sandbox Code Playgroud)
但是,当数据库关闭时,此控制器操作会阻塞.为什么会这样?
| 归档时间: |
|
| 查看次数: |
80 次 |
| 最近记录: |