Joseph Palermo

Biography

  • Rails Associations With Multiple Foreign Keys

    Rails Associations With Multiple Foreign Keys

    Recently we had a situation where we inherited a schema and two of the models were joined using multiple foreign keys. The Rails associations API doesn’t appear to offer any good solutions to this...

    Read More
  • 06/25/12: capybara-webkit on Centos?

    06/25/12: capybara-webkit on Centos?

    Helps capybara-webkit and Centos Capybara webkit works with one app using lobot with a trivial spec. With another app, it fails with a Errno::EPIPE: Broken pipe every time. It seems this error...

    Read More
  • RabbitMQ, AMQP gem, and EventMachine

    RabbitMQ, AMQP gem, and EventMachine

    I recently had a chance to work with RabbitMQ and the AMQP gem. The first problem we ran into with subscribing to a queue was if we forcefully kill a client, a large number of messages would...

    Read More
  • How do you use named_scopes?

    How do you use named_scopes?

    You may have heard of some problems we've had with changes to named_scope in Rails 2.3. The basic change is that when chaining named scopes together, their scoping does not apply only to the...

    Read More
  • Careful when doing a :include with a :has_one :through association

    Careful when doing a :include with a :has_one :through association

    We had an odd bug last week where we ended up with different results after we had eager loaded an association vs loaded directly. There are apparently two issues with :has_one :through, one of...

    Read More
  • loading
    Loading More...