examples/simple.rb in ramaze-0.2.0 vs examples/simple.rb in ramaze-0.2.1

- old
+ new

@@ -17,14 +17,11 @@ # - sum two numbers [ /sum/1/3 ] # - show if you made a POST or GET request [ /post_or_get ] # - How to map your controllers to urls [ /other ] # - Also try out the error-page, just pass something odd ;) - -include Ramaze - -class SimpleController < Controller +class SimpleController < Ramaze::Controller map '/' def index "simple" end @@ -48,10 +45,10 @@ def post_or_get request.post? ? 'POST' : 'GET' end end -class OtherController < Controller +class OtherController < Ramaze::Controller map '/other' def index "Hello, World from #{self.class.name}" end