Sha256: cf8858a6364e5c386468be1a311634e9bb8680f6a590bc76f8381488bec2778b

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

require 'rubygems'
require 'capcode'
$:.unshift( "../lib" )
require 'capcode/render/redirect'

module Capcode
  class Index < Route '/'
    def get
      render :redirect => Hello
    end
  end  
  
  class Hello < Route '/hello'
    def get
      render :text => "Hello World!"
    end
  end  
end

Capcode.run( )

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capcode-render-redirect-0.1.0 examples/render-redirect.rb