Sha256: 81b24beb9e3e81af5aa29f34f939ea19d3a6792a24398a85afdd2d5d0bb9de59
Contents?: true
Size: 883 Bytes
Versions: 4
Compression:
Stored size: 883 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. # Default url mappings are: # a controller called Main is mapped on the root of the site: / # a controller called Something is mapped on: /something # If you want to override this, add a line like this inside the class # map '/otherurl' # this will force the controller to be mounted on: /otherurl class MainController < Controller # the index action is called automatically when no other action is specified def index @welcome = "Welcome to Ramaze!" end # the string returned at the end of the function is used as the html body # if there is no template for the action. if there is a template, the string # is silently ignored def notemplate "there is no template associated with this action" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.2 | lib/proto/src/controller/main.rb |
ramaze-0.1.3 | lib/proto/src/controller/main.rb |
ramaze-0.1.4 | lib/proto/src/controller/main.rb |
ramaze-0.2.0 | lib/proto/src/controller/main.rb |