# HG changeset patch # User Chris Cannam # Date 1292409351 0 # Node ID aea1779e6f1817aa4146b725b54c33ccda148c41 # Parent 87f9c79026e5e50d2043c9e06f70231da042c306 Bug #34: Add a bit more description to the "Invalid form authenticity token" error. Not exactly a fix, but it'll have to do for now. diff -r 87f9c79026e5 -r aea1779e6f18 app/controllers/application_controller.rb --- a/app/controllers/application_controller.rb Wed Dec 08 18:17:38 2010 +0000 +++ b/app/controllers/application_controller.rb Wed Dec 15 10:35:51 2010 +0000 @@ -314,7 +314,7 @@ if api_request? logger.error "Form authenticity token is missing or is invalid. API calls must include a proper Content-type header (text/xml or text/json)." end - render_error "Invalid form authenticity token." + render_error "Invalid form authenticity token. Perhaps your session has timed out; try reloading the form and entering your details again." end def render_feed(items, options={})