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.
Is TDD Dead Part 3 Transcript Concise Version
Fast Feedback and Quality Assurance
Announcing Stoplight, a circuit breaker gem
I am proud to announce the first stable release of Stoplight! It’s like traffic control for your code. Stoplight implements the circuit breaker design pattern in Ruby. Use it to gracefully handle things that occasionally fail. [more inside]
Gem of the Week #8 - rails-erd gem - generate ER diagrams for ActiveRecord models
Hello, Over at the Planet Ruby the Gem of the Week series continues. #8 is the rails-erd gem that lets you generate entity-relationship diagrams (ERD) for your ActiveRecord models. Works not just for Rails but for “plain vanilla” ActiveRecord models too. Cheers.
Using the Registry Pattern in Rails
The Registry pattern is a way to look up collaborator objects without hardcoding their class names and initialization in the calling code. Here’s a way to apply this pattern in Rails.
Different Methods for Merging Ruby Hashes
A quick look at the performance/implications of merging hashes in Ruby
Rails 4.2 Free Lesson 4
Fourth Rails 4.2 lesson is now available
Set Intersection in Ruby
Set Intersection in Ruby is a post explaining what set intersection is and how to perform it using Ruby arrays or the Set object.
Following the Life of an HTTP Request in Rails
Ever wondered how an HTTP request goes from your webserver to the code in your Rails’ stack? Racked with guilt for not knowing Rack? In this series of annotations, we follow the route of a simple HTTP GET request through the Rails source, from the Application to the controller code.
A Glimpse at Tail Call Recursion
Writing more elegant code with methods that call themselves.
Rpush now supports MongoDB.
Rpush, The push notification service for Ruby now supports MongoDB as a data store.
Programatically getting batch status in Sidekiq Pro
A quick way to get batch status in Sidekiq Pro in bulk.
upgrade capybara-webkit to 1.4 and save your time
Have faster and more and reliable acceptance tests thanks to new feature in capybara-webkit
Easily set up a Rails VPS with Ruby 2.2.0 and Puma
Hosting your own Rails app with a VPS has never been easier. This two-part tutorial first guides you through configuring an Ubuntu 14.04 VPS with Ruby 2.2.0, then demonstrates deploying a Rails app with capistrano and Puma.
Put Your Models on a Diet
Would you like to have models which look more attractive? I wrote a short blog post about making models slimmer by getting rid of unnecessary responsibility to have more object oriented code. Read more here »
Starting my journey with Volt
Is Volt a good alternative to Rails? [more inside]
Rails 4.2 Free Lesson 3
Third Rails 4.2 lesson is now available
MailChimp and Active Job - adding users to your mailing list in the background
Oh, how easy and portable background jobs have become! Check out this tutorial for a common use case that has been streamlined in Rails 4.2.
How I use Pronto to help with code reviews
I’ve been experimenting with Pronto to automate some of the low-level aspects of code review and code quality assurance. Here’s what I’ve found and liked so far.
Regression Tests, Rspec and Rails
The need of regression tests in rails and rspec is discussed in this blog post:
Don't trust everything Rails generates for you.
Rails’ scaffold generator can generate large swaths of functionality for your application. Just be careful it isn’t exposing more of your application than you intend.
Using PostgreSQL and jsonb with Ruby on Rails
Rails 4.2 introduced support for Postgres’ jsonb. In this article we’ll explore this new column type, see what are the differences against the already supported json type and how to perform queries from ActiveRecord. Check it out!
A guide to extracting your first Ruby Gem
Is your GitHub contribution chart solid gray? You could use an open source project to work on. And the easiest way to create a useful side project is to pull it out of the app you’re already building. But how do you know what to extract? And how do you turn it into a gem, without destroying your workflow?
Time: The Black Sheep of the Programming Family
No matter where you’re from, what programming language you prefer, or which JavaScript framework you’re committed to, we can all agree with on one thing: time is a royal pain to deal with. This post dives into the different formats and obstacles of dealing with time in Rails applications, pointing out some cool challenges developers have had to face along the way.
On the Road From Ruby Journeyman to Ruby Master
On the Road From Ruby Journeyman to Ruby Master: A reflection on my progression from Ruby newbie to more experienced Rubyist via one of my earliest Ruby scripts, its shortcomings, and a look at how I might approach the same problem today.
[TUTORIAL] How to send an SMS in Ruby, using Sinch
We wanted to make a helper library for Ruby developers to send an SMS from their Ruby applications using the Sinch SMS API. [more inside]