CGI Script Inside Rails?

In the depot example we use a "Empty cart" button to empty the cart. However, Instead of clicking the "Empty Cart" button, we want to call a script from inside a .SWF(Flash) object to do it.

How do we write a .rb script to do something in the Rails environment?

-Frank

~/rails/depot/app/controllers/store_controller.rb

Why can't your flash object make the same http request that clicking on the button would have done ?

Fred