I have a Redmine 2.1.2 server running. In my yet-unported-to-Rails-3 Rails 2 apps, I want to create the 500.html page to have a form that the user can make a Redmine issue about the error, and create it using the Redmine API. However, I'm not sure how to actually "send" the API call from the 500 page since it's a "flat" page (i.e., no controller, views, etc.)
Is it possible to do this in Javascript (seems dangerous)? Or do I somehow need to call one of my Rails controllers from the 500 page, and execute the API from the controller method? I've looked around the internet a little on this topic, but I'm having a hard time finding anything concrete.
Any help would be appreciated.