Sha256: 651941fd8417ab051f5284e8d1a8ecb0ef97b384c959632b00ac6470bb68cf59
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'ramaze' include Ramaze # This is named MainController to automagically map it to '/' # Global.mapping['/'] = MainController # would do the same thing. # you can access it now with http://localhost:7000/ # This should output # Hello, World! # in your browser class MainController < Controller def index "Hello, World!" end end start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.0.8 | examples/hello.rb |
ramaze-0.0.9 | examples/hello.rb |