Sha256: e2b01ca8dce1d37bdacc5b8ea4934b4a3e28ba4c39403176d507d2b178450765

Contents?: true

Size: 739 Bytes

Versions: 54

Compression:

Stored size: 739 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 < Controller
  # 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

54 entries across 54 versions & 7 rubygems

Version Path
Pistos-ramaze-2008.09 lib/proto/controller/main.rb
Pistos-ramaze-2008.12 lib/proto/controller/main.rb
Pistos-ramaze-2009.01 lib/proto/controller/main.rb
Pistos-ramaze-2009.02 lib/proto/controller/main.rb
Pistos-ramaze-2009.04.08 lib/proto/controller/main.rb
Pistos-ramaze-2009.06.12 lib/proto/controller/main.rb
manveru-ramaze-2008.09 lib/proto/controller/main.rb
manveru-ramaze-2008.10 lib/proto/controller/main.rb
manveru-ramaze-2008.12 lib/proto/controller/main.rb
manveru-ramaze-2009.01 lib/proto/controller/main.rb
manveru-ramaze-2009.04.01 lib/proto/controller/main.rb
manveru-ramaze-2009.04.08 lib/proto/controller/main.rb
manveru-ramaze-2009.04.18 lib/proto/controller/main.rb
manveru-ramaze-2009.04.22 lib/proto/controller/main.rb
manveru-ramaze-2009.04 lib/proto/controller/main.rb
manveru-ramaze-2009.05.08 lib/proto/controller/main.rb
manveru-ramaze-2009.05 lib/proto/controller/main.rb
manveru-ramaze-2009.06.04 lib/proto/controller/main.rb
manveru-ramaze-2009.06.12 lib/proto/controller/main.rb
manveru-ramaze-2009.06 lib/proto/controller/main.rb