title: Using Username or Email for Devise Causing Error
body: <p>I followed the wiki post to add username as another authentication method for Devise.. <a href="https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address" rel="nofollow">https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address</a></p>
  
  <p>Once I completed the steps and tried to sign in I was given this error:</p>
  
  <pre><code>ActiveRecord::StatementInvalid in Devise::SessionsController#create 
  SQLite3::SQLException: no such column: users.login: SELECT  "users".* FROM "users"  WHERE "users"."login" = 't2kocurek@gmail.com' LIMIT 1
  </code></pre>
  
  <p>As you can see, the create method is looking for a login column. I am not sure why this is happening. I overrode the registrations controller and added the self.find_for_authentication method to it along with the other methods. </p>
  
  <p>Any thoughts?</p>
  
  <p>What code would I need to post to give some more clues?</p>