snebel/Citibike — pull request #2 by jleo3 (2013-11-14 18:43:09+00:00)
Title: Storing session data in the db

More on the commit:

adding the activerecord-session-store gem
creating a sessions table
changing config to use active_record session store
changing how errors are displayed (still incomplete)

Sam, this will get you out of your CookieOverflow error. My best guess is that you are storing both custom data and session data from devise in your cookie, and this is exceeding 4 kb (by the slimmest of margins). By moving the session data to an active record session store, you are free to put more custom data (lats and longs) into the cookie.

You can merge this if you want or recreate on your own: http://stackoverflow.com/a/17656159/1617395. Remember that your custom validator is setting an error every time it's called (with "if true"), so you'll want to start customizing your validation here.

Good luck!