NoMethodError (undefined method `refresh_token’ for #):

Problem
When you get the above error you cannot login to your application.

Solution
You will need to delete the cookies for the authentication, so in Firefox (Linux) go to Preferences, remove individual cookies for the specific domain.