Sha256: 24f718c01ab3180f1b38664a1d051a32b0624470d2c7196b1fad5549a99f3d55
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
# Start me with : rackup ramaze.ru # Default port is 9292 require 'rubygems' require 'ramaze' require File::expand_path('../yamlade', File.dirname(__FILE__)) # When installed, just use : require 'yamlade' class MainController < Ramaze::Controller # / def index @conf = Yamlade.new("options.yml") if request.post? @conf.update(request['yaml']) end @conf.to_form(request.path_info) + "<br /><br /><a href='/inspect'>>> INSPECT</a>" end # /inspect def inspect YAML.load_file("options.yml").inspect end end Ramaze.start(:root => __DIR__, :started => true, :mode => :dev) run Ramaze
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yamlade-0.0.2 | examples/ramaze.ru |
yamlade-0.0.1 | examples/ramaze.ru |