title: Rails 3 HTTP digest authentication
body: <p>Is HTTP digest authentication still supported in Rails 3?</p>
  
  <p>I tried the following code in Rails 2.3.5, it works.</p>
  
  <pre><code>class Admin::BaseController &lt; ApplicationController
    before_filter :authenticate
    USERS = { "lifo" =&gt; "world" }
    def authenticate
      authenticate_or_request_with_http_digest("Application") do |name|
        USERS[name]
      end
    end
  end
  </code></pre>
  
  <p>Now, the same thing in Rails 3.0.0.beta returns an error:</p>
  
  <pre><code>can't convert nil into String
  </code></pre>
  
  <p>Am I missing something or is this a bug in Rails 3? HTTP basic authentication works fine.</p>