Tag Archives: rails

Adding multiple database support to Cucumber

The Vqmetrics application needs to connect to two different databases. The first holds the videos, authors and their relevant statistics, while the second database holds the users, monitors and trackers. We do this by specifying two databases in config/database.yml. development: database: vqmetrics_devel < <: *login_dev_local   vqdata_development: &VQDATA_TEST database: vqdata_devel <<: *login_dev_local So by default [...]

Squid and Rails caching

At Vquence our Rails setup looks something like this. ———— ——— ———— | Internet |—->| Squid |—->| Mongrels | ———— ——— ———— (Who needs Inkscape when you have ASCII art) This infrastructure is hosted in the US and up until recently squid hadn’t been doing much of anything except really sitting there. Now a few [...]

Rails, ActiveRecord, MySQL, GUIDs and the rename_column bug

Since I wasted over 4 hours of my life today working my way through this problem I feel the need to share. Since it seems to be the in thing in the Web 2.0 space, just to be cool, we use GUIDs to identify different objects in our URLs at Vquence. For example my randomly [...]

Mongrel, rails and the theory of relativity

Summary (E = mc²) When using mongrel for rails and you want to deploy an app under /other_url then use ActionController::AbstractRequest.relative_url_root = “/other_url” in config/environments/production.rb instead of ENV['RAILS_RELATIVE_URL_ROOT'] = “/other_url” Proof (From first principals) At Vquence we have a pretty standard rails setup Apache with mod_proxy pen mongrel Silvia recently wrote an application to allow [...]