The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
The RVM Ruby API
Recently I started using RVM to setup a CI system for my work on the SQL Server adapter. This article covers my usage of the relatively new RVM ruby API in a rake task that helps setup installed rubies to work with with a MacPorts install base.
Rails and Databases
I just wrote about Rails and Databases to find out what I did wrong when working with a common database security model. [more inside]
Design Patterns in Ruby: Chain of Responsibility
We have just published a new post: Design Patterns in Ruby: Chain of Responsibility on DevInterface Blog. [more inside]
My Capistrano task to deploy with latest Bundler
A new version of Bundler (1.0rc2) has just been released! Here is the Capistrano task that I use to deploy with it.
Ruby object allocation & why you should care
Rubyists don’t have to manage memory allocation, right? Wrong! Bad memory allocation in your critical path can cause drastic performance issues. Some of the libraries/frameworks/plugins you are using might be slowing you down more than you think: Read the full article.
153 Characters to Save 700 Megs of RAM
An interesting blog post that illustrates how :select can save tons of memory.
Architecture of a High Traffic Messaging System
This paper describes one of possible approaches for implementing cost-efficient high traffic messaging system using open source stack of technologies and cloud computing platform. It is based on our successful real world experience.
Simple alias for changing to the current RVM Gemset directory
Stick this in your .bash_profile and run ‘cdgems’ if you’re using RVM. It will open a new terminal tab and cd to the correct directory.
Full-text search in Rails applications with Sphinx
An overview of approaches to perform full-text searching in Rails applications and a close look at one of the best search engines called Sphinx.
How GitHub Does Enterprise
I wrote about how GitHub handles a long-running branch for our enterprise product, Firewall Install. It involves a lot of explosions.
Maestro - cloud provisioning, config, and management for Ruby and Rails
Maestro is a cloud provisioning, configuration, and management utility for your Ruby and Ruby On Rails applications. Simply declare the structure of your clouds via configuration files, create Chef recipes to configure the nodes in your clouds, and Maestro takes care of the rest. The source and documentation can be found here: http://github.com/bploetz/maestro
Rails Test Prescriptions Beta 5
Rails Test Prescriptions Beta 5 is now available, featuring Rails 3 support and a chapter on legacy code. Follow the books progress at the Rails Rx blog.
Q&A w/John Nunemaker on MongoDB
The author of MongoMapper says Mongo is pretty much his default database. The post also introduces John’s Scout plugin for monitoring MongoDB.
Notes from a Rails on PostgreSQL talk
Here are some notes from a Pivotal Labs talk on running Rails on PostgreSQL from a while back. Some good content there on partitioning, explain, and all that.
Upgrading a Rails 3 beta 4 application to Rails 3 RC
I’d like to share my experiences upgrading my application from Rails 3 beta 4 to Rails 3 RC. Changes involve Bundler and skeleton files (config/ etc.).
Maptastic - a Formtastic Map Location Selector
Just released a plugin for Formtastic that adds a control for selecting a location from a map: Maptastic
Choco : A delicious Javascript web framework
Choco brings the MVC to the client side! It is an excellent solution to develop single-page web applications. [more inside]
Asynchronous email deliveries using Resque and resque_action_mailer_backend
If you ever wanted to send emails asynchronously using your current Resque setup, this is the right gem for you. resque_action_mailer_backend integrates cleanly with your Rails application and lets you deliver emaisl out of the request cycle by sending the generated emails using one of your Resque workers. It doesn’t ask you to call fancy methods, inherit from new classes or anything, just tell ActionMailer to send using :resque and you’re done. More here.
Bundler to the Max
I’ve been using the pre-release version of bundler in some interesting ways. I’d love to hear your thoughts! http://numbers.brighterplanet.com/2010/07/28/bundler-to-the-max/
Incoming Email Processing Microframework
I just pushed the first gem release of my Ruby Summer of Code project, Mailman.
Testing for Booleans - A New Plugin
I created a simple plugin that adds a to_b method to various classes. You can read about it here.
Upgrading from Rails Beta 4 to the Release Candidate
I ran into a couple of snags when Upgrading from Rails Beta 4 to the Release Candidate. I recorded the problems and fixes in a video and put it on Teach Me To Code.
Rails Camp New England #3
Registation is now open. Sept 10 - Sept 13 in Stowe, VT. Join 30 other Rubyists for a weekend of hacking, beer and fun! All levels welcome.