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.
Sandi Metz - Nothing is Something
Great talk by Sandi Metz at RailsConf about identifying hidden concepts in your code. Nothing is Something.
Easy Docker event monitoring via the docker-api gem
A howto on monitoring docker events via the docker-api and statsd-ruby Ruby gems.
The Ruby Community: An Introduction
A Sitepoint article on the Ruby Community dealing with the Basics, Primary Community Members, Testing, Frameworks and Rake. [more inside]
active_loaders: preload SQL data for your serializers (AMS) more easily
active_loaders is a gem that takes care of automatically doing “includes” for you when you’re using ActiveModel Serializers, and then also allows you to write queries for more complex preloading logic in a reusable way. It uses your serializer as a manifest to preload the data you need from the DB. It supports ActiveRecord and Sequel. [more inside]
Get Freaky: Browse and download conference videos from the command line.
get_freaky is a ruby gem I built to make it easier to download videos from confreaks.tv. I built this tool because I was interested in saving conference videos from confreaks for viewing later, like when I have time to kill on busses and planes. It could also allow you to do things like automatically download a new conference video once a day or once a month with a cron job or something. [more inside]
The ten most widely read contributed articles in Practicing Ruby
See this list of articles for a good sampling of what Practicing Ruby’s guest authors have been up to over the years.
Code Dojo: Twitter Top Trumps (part 2)
Attempting to build an app in two hours that’ll let us compare two users Twitter followers:
avgbm gem: Adds Benchmark.avgbm
performs Benchmark.measure multiple times… discards highest/lowest times and averages the remaining times.
Unless Or Negative Expressions On Conditionals
It’s amazing our ability to tell histories by negative conditionals. [more inside]
CanCanCan: The Rails Authorization Dance
Meet CanCanCan, a flexible authorization solution for Rails. This project started as CanCan authored by Ryan Bates, the creator of RailsCasts. However, a couple of years ago this project became inactive, so members of the community decided to create CanCanCan, a continuation of the initial solution.
Use TZInfo to send timely emails
If you’ve ever needed to send emails at a specific time in different time zones, TZInfo is a great tool to use.
Regular expression matching in Ruby with String#[]
Today I discovered that you could do "foobar".[/f../] to extract “foo” from the string. Here’s a short post explaining how to use String#[] to match regular expressions.
Functional programming in Ruby - Part 2
Do you remember the first part of FP in Ruby? Here comes the second one!
Extracting Configuration in Ruby Application
Hi! Today I’m going to present you a little gem that I extracted after solving the same problem over and over again in Rails. But it can also be used in any Ruby application. The gem is called app_configuration… Learn more here
Top 6 Ruby Links for June 4, 2015
Here is a list of Ruby links that I would like to read and use as a reference: Top 6 Ruby Links for June 4, 2015
Working with exceptions in Pry
Pry has some cool features for working with exceptions in development. http://blog.honeybadger.io/working-with-exceptions-in-pry/
PDF Email Attachments with Paperclip and wicked_pdf
A brief tutorial on using Paperclip to attach PDFs (generated by wicked_pdf) to emails
EmailHunter
A tiny ruby wrapper around Email Hunter API (https://emailhunter.co/) [more inside]
How to reformat CSV files with Kiba ETL?
I just pushed out a fairly detailed hands-on article explaining how to completely remap a CSV file generated by a French system into an US one, using Kiba ETL. [more inside]
Idiosyncratic Ruby: Episode 29-31
…and here are the final three idiosyncratic episodes: Grammar edge cases, a regex char class cheatsheet and reasons to still use Ruby. There is also a new overview page to browse all episodes. Thank you for all the great feedback!
A refactoring exercise for fun and profit
An exercise where I refactor an existing real world piece of code - just for fun - and hopefully you and I profit (learn) from.
Algorithmic fun with Ruby's hashes
using Hashes to model and solve common logic problems
Our Path to Services in Rails - Part I
Here’s new post on Our Path to Services in Rails - Part I. Hope you enjoy!
3 ways to configure your Ruby API wrappers
When you use Ruby to wrap an API, you have to have a way to configure it. Maybe the wrapper needs a username and secret key, or maybe just a host. There are a few different ways you could handle this. So which one should you choose?
Benchmarking Ruby dispatch strategies
Ever wonder how send and other kinds of dynamic method dispatch stack up, performance wise? I did some benchmarking.