carrot

How to use an external server with Ruby AMQP Carrot Library

I am using the Ruby AMQP Carrot library and I am trying to talk to a test RabbitMQ server on a virtual machine. The AMQP port is open on the machine but I can't get Carrot to establish an external connection. I have tried the following: Carrot.queue('message', :durable => true, :server => '192.168.162.176') Carrot.queue('messa...

Where is the best place initialize a Singleton in Rails?

Where is the best place initialize a Singleton in Rails? I am using the Carrot AMQP library in a Ruby on Rails app and I only want to initial the settings once and not on every task that is generated. I currently have it in my environment.rb and it seems to work but I am not entirely sure this is the best place. Is having Carrot initi...

Having Issues with a utility app...

How do I accept data on the backside of a utility app, and then how do I let users modify that data? I've tried all sorts of tutorials, but to no avail. If you need further information let me know. Thanks in advanced. ...