Written by Philipp on 2008-07-04
very first test with ruby camping :-)
nexenta . ruby . TechI tried The Camping Short, Short Example for the ruby camping framework. #!ruby #!/usr/local/bin/ruby -rubygems require ‘camping’ Camping.goes :HomePage module HomePage::Controllers # The root slash shows the `index’ view. class Index < R ‘/’ def get render :index end end # Any other page name gets sent to the view # of the same name.