aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/address_book_controller.cgi
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-24 01:04:44 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-24 01:04:44 +0000
commitdb045dbbf60b53dbe013ef25554fd013baf88134 (patch)
tree257830e3c76458c8ff3d1329de83f32b23926028 /actionpack/examples/address_book_controller.cgi
downloadrails-db045dbbf60b53dbe013ef25554fd013baf88134.tar.gz
rails-db045dbbf60b53dbe013ef25554fd013baf88134.tar.bz2
rails-db045dbbf60b53dbe013ef25554fd013baf88134.zip
Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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