Sha256: 6e1406a8a1abde9e646908f7869c0777d566bb5236a9fd1818922343f00c08b7

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 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 < Ramaze::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

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.2.1 lib/proto/src/controller/main.rb