gabby2212/mockinterview — pull request #2 by howardjing (2013-08-26 23:41:28+00:00)
Title: Bootstrap

Fixing select options in the select form and adding bootstrap.

There is a nil pointer bug in your code that I didn't fix, look in user.rb at this method:

def self.find_for_authentication(conditions)
user = super
return nil if user.deleted == true
user
end

If super didn't find a user then you'll be calling the deleted method on user, which will raise an exception. So you should check if user && user.deleted == true. I noticed this while trying to sign in as a user who does not exist.