title: Rails 4 + Devise: Password Reset is always giving a "Token is invalid" error on the production server, but works fine locally.
body: <p>I have a Rails 4 application set up to use Devise, and I'm running a problem with password resets. I have the mailer set up, and the password reset email sends fine. The link provided has the correct reset_password_token assigned to it, which I checked with that database. However, when I submit the form with correctly formatted passwords, it gives an error saying that the reset token is invalid. </p>
  
  <p>However, the exact same code works fine locally through <code>rails s</code>. The email sends, and I can actually reset the password. The code I use is just the standard Devise code, I haven't overridden any of it. </p>
  
  <p>Perhaps it's something with Apache? I'm not too familiar with it. Does anyone have any ideas? </p>