[macruby-changes] [4382] ControlTower/trunk/sample/sinatra_hello.ru

source_changes at macosforge.org source_changes at macosforge.org
Sat Jul 24 20:19:02 PDT 2010


Revision: 4382
          http://trac.macosforge.org/projects/ruby/changeset/4382
Author:   lsansonetti at apple.com
Date:     2010-07-24 20:19:02 -0700 (Sat, 24 Jul 2010)
Log Message:
-----------
added sinatra hello world

Added Paths:
-----------
    ControlTower/trunk/sample/sinatra_hello.ru

Added: ControlTower/trunk/sample/sinatra_hello.ru
===================================================================
--- ControlTower/trunk/sample/sinatra_hello.ru	                        (rev 0)
+++ ControlTower/trunk/sample/sinatra_hello.ru	2010-07-25 03:19:02 UTC (rev 4382)
@@ -0,0 +1,10 @@
+require 'rubygems'
+require 'sinatra/base'
+
+class MyApp < Sinatra::Base
+  get '/' do
+    'Hello world!'
+  end
+end
+
+run MyApp.new
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100724/a223b315/attachment.html>


More information about the macruby-changes mailing list