aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/address_book_controller.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples/address_book_controller.cgi')
-rwxr-xr-xactionpack/examples/address_book_controller.cgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/examples/address_book_controller.cgi b/actionpack/examples/address_book_controller.cgi
new file mode 100755
index 0000000000..2e15467285
--- /dev/null
+++ b/actionpack/examples/address_book_controller.cgi
@@ -0,0 +1,9 @@
+#!/usr/local/bin/ruby
+
+require "address_book_controller"
+
+begin
+ AddressBookController.process_cgi(CGI.new)
+rescue => e
+ CGI.new.out { "#{e.class}: #{e.message}" }
+end \ No newline at end of file