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.
Rails ActiveRecord - Batch Updates
A little information on Rails ActiveRecord - Batch Updates. Better than iterating over collections.
Upgrading to Mountain Lion, a complete guide for Rubyists
Complete guide of upgrading to Mountain Lion for fellow Rubyists. It not only suggests, how to fix Ruby, RVM etc - but I have also documented some minor ML specific problems you may encounter.
Phusion Passenger Enterprise released
Learn more about this at the new Phusion Passenger website.
How To Create Terminal Progress Indicators In Ruby
A short post explaining how to display progress indicators in the terminal. Examples include percentages, progress bars, and spinners.
Testing custom SimpleForm inputs
Details about testing custom SimpleFrom inputs using RSpec with a real world example.
Less Code, More Speed
I ran speed tests with various web servers and configurations and found, yet again, that less code yields the most gains. For example, by removing Sinatra. (Tested using Picky, the clever Ruby semantic search engine)
Ruby Constructs: Class, Module and Mixin
I wrote an overview of some of the basic Ruby constructs such as class, module and mixin.
Get Previously Saved Changes in Rails
If you make changes to an object you can get the previously saved changes in Rails. Use it to make an audit trail or something else equally useful. Go forth and make changes!
Install Ruby 1.9.3 on OS X 10.8 Mountain Lion
I just launched a tut to install Ruby 1.9.x on the new Mac OS X Mountain Lion without any version manager.
Rack Authentication Cheat Sheet
I just wrote some real usable examples and docs for Rack::Auth::Basic and Rack::Auth::Digest::MD5. Save yourself some time reading the source code and read my cheat sheet example code instead.
Manage Your Raw Flash Storage Data with ITTIA DB SQL
ITTIA DB SQL eases data retrieval by storing database directly to SPI device and supplying raw storage flash media with robust data management capabilities through SPI. This results in storing data – even large images and music - in table rows that are efficiently queried, with or without SQL.
Synack: Mountain Lion Notifications via Ruby
Synack is a client/server wrapper for Terminal Notifier that allows messages to be sent from Ruby programs to Mac OS X Mountain Lion’s Notification Center. Check the README at for prerequisites, then install using gem install synack. Great for piping Rspec results to OS X, and it even works across the network. Enjoy!
Master Time and Space for JavaScript
A new ebook on JavaScript that might be of interest to Rails programmers, details at
What You Should Know About SOLID
Did you always wonder what that whole SOLID thing is all about? Why everyone is shouting at you for violating the Law of Demeter (you won’t go to jail for that one, by the way)? And did you talk about soccer when people mentioned the Liskov Substitution Principle and looked at you confused? Then read on!
Ruby with MongoDB for Web Development
The article “Ruby with MongoDB for Web Development” by Gautam Rege will walk you through modeling a Ruby application, learning various constructs of MongoDB, and then integrating it into Rails and Sinatra.
The differences between dup and clone in Ruby
I just wrote a quick explanation with examples of the differences between copying and cloning a Ruby object. I’ve also added a quick explanation of shallow object copying.
auto_html 1.6.0 released
auto_html 1.6.0 is out with fixes and few new filters. Check them out on a new demo page.
Cartier Rubygem
I just launched Cartier a Rubygem aimed at simplifying GPS calculations such as distance, closest point, midpoint, and projected destination. Read more
Team Dashboard released
I just launched Team Dashboard. Its so beta, it doesn’t even have a version yet! Read more
Spreecast & Redis Failover
New blog post about Spreecast and the redis_failover gem.
How to bust your Rails etag cache on deployment.
A simple tip to handle etag busting on deploying your Rails app.
Active Record Deep Dive
If you’re new to Rails and Active Record, or you’ve been using them for some time, there are likely methods you’ve been overlooking. Join me this week for a deep dive into Active Record as we cover the query interface, how method chaining works, and how to avoid SQL injection.
merge, except and only - lets arel first episode
In this screencast merge, except, joins_values and only are discussed. Future episodes will discuss more Arel goodies.
Uploading, converting and generating thumbnails for PDF documents
This blog post explains how to easily upload PDF documents to the cloud, automatically convert them to images and back to PDFs, generate thumbnails dynamically, extract certain pages from multi-page documents and deliver through a fast CDN. All that done in the cloud without any software installation. Ruby on Rails sample code included.
The story how I used gon with rabl on groupon.ru
I’ve released a new version of my gem Gon (currently 4.0.0) recently, so I’ve decided to make some examples of it’s features in use. Here is my blog post.