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.
rgb — simple color conversions and manipulations
A simple Ruby gem built to handle easy color conversions and manipulations:
Ruby Metaprogramming - Method Missing
Understanding how method_missing works and how you can use it to help develop dynamic method calls.
How to build a parser with Ruby
Parsing is the art of making sense of a bunch of strings and converting them into something we can understand. Continue reading:
Holy Grail Of Estimating A Ticket Right
Estimations are scary. Estimations are tricky. Estimations are never accurate. Our team has recently conducted a short internal webinar which we’d like to summarize to combat some stereotypes you might have of this issue and help you in estimating the tickets right .
Chronicles
Remembering history of invocations of object methods. Read more
Enabling SSL for your Rails apps with Intercity
A guide that shows you how easy it is to enable SSL for your Ruby on Rails apps if they’re hosted with Intercity. -
STI for Beginners from a Beginner
The way I understood STI as a beginner.
Are you using RSpec+Cucumber+FactoryGirl right now, read this.
My default testing stack consists of RSpec, Cucumber and FactoryGirl. I’ve been on the prowl for a something better and I think I’ve found it. Read more at Ariejan.net about Testing with Minitest.
ActiveRecord vs Me… Round 1 – FIGHT!
With difficulty in adding a method like first_or_create to ActiveRecord’s WhereChain I came to an alternative solution.
E-mail in Rails with MailChimp and Mandrill, a comprehensive guide
Setting up and using MailChimp and Mandrill in Rails, start to finish. A comprehensive tutorial. Read more
Video Tutorial: Logrotate
Learn how to manage your server’s logs and set up log rotation for your Ruby on Rails logs in this video tutorial: .
Hijacking Rack to add Websockets to Rails 4
As Rails 4 is full concurrent, there’s no full-stack lock on a request. You can use threads to hold websocket connections open without bogging down the server. Nick Gauthier wrote about this approach in this article:
Reading Ruby - Minitest's Plugin System
We’re going to dive into Minitest’s source and learn how it implements a simple but effective plugin system. If you’re curious about Minitest’s internals, are interested in the learning some more about Ruby less well known features, or are interested in building an extensible command line application, come along. Read more
Querying At Warp Drive: Using ActiveRecord Includes
We can make our code work and make our code right, but when it comes to making it fast…well, that’s a whole other story. Learn how to make smart queries at warp speed using a handy ActiveRecord method called includes. This post dives into the computer science theory behind quick querying and explains how this method can make your Rails apps more efficient.
7 Steps to Better Cucumber Tests
When you are starting out with rails testing there are so many things you need to learn about and thus it’s very hard to have a clear picture of what goes where. I’ve posted a few tips on how to improve your cucumber features. Check them out
Best GUI Tool for for Ruby Desktop Based Application Developement
Need a GUI Tool like WindowBuilder provided in Eclipse for Swing Application Development. Read more
Template Method Pattern in Ruby
When working as a software developer, knowledge of some design patterns is always welcomed. If you’ve never heard about design patterns, they are basically some general reusable patterns for common problems that developers run into. Lets explore the Template Method Pattern and implement it in Ruby.
Token authentication with multiple tokens support
I described how to use Tiddle - gem for token authentication, which supports multiple tokens for each user.
Building An Unbeatable Tic-Tac-Toe Game In Ruby Pt. 3
Final post in a short series of posts describing how I designed and implemented an unbeatable TicTacToe game using Ruby.
Crash Course on Modern Web Development, now with Frontend Frameworks section
Just updated my guide to modern web development using Ruby with resources about the most popular frontend frameworks today. Always happy to get some feedback about it, thanks!
Use Minitest for Your Next Rails Project
I recently switched to Minitest after using RSpec exclusively for many years. Being the less-popular Rails test framework, Minitest documentation and examples can be hard to find. Rails 3 and 4 instructions can contradict each other. And even the basic terminology is confusing: what is the difference between Test::Unit and Minitest? Which does Rails ship with? I answer questions like these and more in my Rails and Minitest setup guide.
How do assigns and reload work in Rails tests?
I wrote a new article in Everyday Rails, exploring a common question I get about testing: how do assigns and reload work with Rails test data?
Five less used enumerators of Ruby
Few more techniques to get rid of each: 5 less used enumerators of Ruby
RSpec Clipboard Formatter
A tiny utility to improve your dev workflow: The RSpec Clipboard Formatter will copy the command to run all failed examples to your clipboard.
Ruby DSL Handbook 50% off discount ends today
If you’re interested in picking up the Ruby DSL Handbook, today is the last day to get it for only $12. It’s just about finished and I’ve been releasing some screencasts to go along with it.