Tag: 基本身份validation

Rails 3 http_basic_authenticate_with仅在生产环境中?

有没有办法只使用 http_basic_authenticate_with :name => ‘user’, :password => ‘secret’ 当服务器在生产模式下运行时?