Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env rackup
- require 'ramaze'
- class MainController < Ramaze::Controller
- map '/'
- def index
- return "Hello #{session[:name]}"
- end
- def set
- session[:name] = 'Ruby'
- end
- end
- Ramaze::Cache.options.session = Ramaze::Cache::MemCache
- Ramaze.start(
- :root => Ramaze.options.roots,
- :started => true,
- :port => Ramaze::Adapter.options.port
- )
- run Ramaze
Add Comment
Please, Sign In to add comment