Mercurial > hg > soundsoftware-site
diff app/controllers/application_controller.rb @ 79:aea1779e6f18 live
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.
author | Chris Cannam |
---|---|
date | Wed, 15 Dec 2010 10:35:51 +0000 |
parents | 94944d00e43c |
children | b859cc0c4fa1 4b1a23d81683 |
line wrap: on
line diff
--- 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={})