Anonymous (owner)

Revisions

  • 48eb11 Wed Jul 15 03:49:41 -0700 2009
gist: 147641 Download_button fork
public
Public Clone URL: git://gist.github.com/147641.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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