Skip to content

Instantly share code, notes, and snippets.

Created July 15, 2009 10:49
Show Gist options
  • Save anonymous/147641 to your computer and use it in GitHub Desktop.
Save anonymous/147641 to your computer and use it in GitHub Desktop.
# in config/init.rb
puts "Starting Nanite thread"
Thread.new do
EventMachine.run do
Nanite.start_mapper(:log_level => 'debug' , :user => 'mapper', :pass => 'testing', :vhost => '/nanite',
:persistent => false, :mapper => true)
end
end
# the request
# bin/merb -i -e production
Nanite.request('/title/search_by_title', {:custom_args => 123})
# returns false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment