Skip to content

Instantly share code, notes, and snippets.

@kiko
Created March 1, 2009 09:34
Show Gist options
  • Save kiko/72289 to your computer and use it in GitHub Desktop.
Save kiko/72289 to your computer and use it in GitHub Desktop.
require 'ramaze'
class TestController < Ramaze::Controller
provide :html => :haml
def index
%(= render_template('foo', {:bar => {:a => 1, :b => 2}}))
end
def foo
%(= bar.class) #=> Hash
end
end
Ramaze.start :adapter => :thin, :port => 7000, :file => __FILE__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment