Sha256: 81cba12923d17b49842a0d2e5cfb0850153cf909dcad65309a4eef2f7b183880
Contents?: true
Size: 765 Bytes
Versions: 7
Compression:
Stored size: 765 Bytes
Contents
# 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 < Ramaze::Controller layout '/page' # the index action is called automatically when no other action is specified def index @title = "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 'notemplate.xhtml' associated with this action" end end
Version data entries
7 entries across 7 versions & 3 rubygems