title: Rails TypeError (no implicit conversion of Symbol into Integer) on a string
body: <p>After setup a simple token check on the session rails spits out this</p>
  <blockquote>
  <p>TypeError (no implicit conversion of Symbol into Integer)</p>
  <p>app/controllers/sessions_controller.rb:21:in `verify_token'</p>
  </blockquote>
  <p>on this method</p>
  <p>so, as i checked seems right.</p>
  <p>someone has any idea why this is happening on this method?</p>
  <pre><code>def verify_token
      @current_user = User.find_by(auth_token: request.headers['token'] [:auth_token])    
      if @current_user    
        render json: {message:&quot;verified&quot;,  status: 200}    
      else    
        render_unauthorized(&quot;Token failed verification&quot;)
      end
  end
  </code></pre>