examples/simple.rb in ramaze-0.0.9 vs examples/simple.rb in ramaze-0.1.0

- old
+ new

@@ -21,10 +21,12 @@ include Ramaze class SimpleController < Controller + map '/' + def index "simple" end def simple @@ -47,16 +49,11 @@ request.post? ? 'POST' : 'GET' end end class OtherController < Controller + map '/other' + def index "Hello, World from #{self.class.name}" end end - -Global.mapping = { - '/' => SimpleController, - '/other' => OtherController -} - -start