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.
Auto-reconnect for ActiveRecord connections
Custom auto-reconnect in Rails applications when using ActiveRecord connections.
Rescue exceptions DSL for plain Ruby objects with Rails
Likewise in Rails controllers we have a useful functionality to catch exceptions with rescue_from in order to change the default behavior, it’s too easy to obtain it for any other type of a Ruby object in Rails applications. Check out this post about the solution.
Decoradar – Simple and zero auto-magical decorator+serializer in Ruby
Decoradar is a simple and magic-free decorator+serializer that brings ActiveModel::Serializer/Draper DSL-style declaration to Plain Ruby Object. View more at
Writing Sprockets plugin
In this blog post i show you how easy it is to write an Sprockets plugin for your Rails Asset Pipeline:
Limited-time promotion from Upcase and RubyTapas
Upcase and RubyTapas are joining forces to offer a time-limited discount on their services (and special add-ons like a live AMA). Read more
Ruby's Mysterious Triple Equals Operator, a.k.a. Case Equality Operator
You may have never used Ruby’s triple-equals operator. But understanding it is key to unlocking the hidden power of case, rescue and other Ruby features. http://www.rubyletter.com/blog/2017/01/18/ruby-triple-equals-operator.html
Bundler and Gemfile best practices
Taking care of your Gemfile with basic hygiene and some ongoing love will make life for future you much easier: Bundler and Gemfile best practices
New Podcast from Table XI and Noel Rappin
I think people here might be interested in a podcast I’m doing, http://www.techdoneright.io/ – it’s about building better software to develop better careers, companies, and communities. The first episode has Jessie Shternshus of The Improv Effect talking about building trust and building teams, with some great advice on making feedback work. I’d really appreciate it if you checked it out and passed it along — http://www.techdoneright.io/001-building-trust — I think you’ll like it.
Played around Redis Keyspace Notifications with Ruby
I came across the so-called Redis Keyspace Notifications and played around it with Ruby. It basically acts as a Pub/Sub mechanism that enables clients to subscribe to a Redis channel and receive “published” events whenever a Redis command or data alteration is encountered. Read more
Introduction: ChartKich for easy data visualization & protyping in Ruby
Charkick make visualization of data easier in a Ruby on Rails application. Its quite easy to work with to create charts to make business decisions. This article is about the introduction to the framework.
Integration Testing Ruby on Rails with Minitest and Capybara
Capybara is an acceptance test framework for web applications. This tutorial explains how to use it with Minitest for integration testing of Ruby on Rails applications.
A cleaner way to set conditional CSS classes on 'link_to'
Using inspiration from React, there’s finally a more elegant way to set multiple conditional CSS classes on link_to and other Rails tag helpers which take a :class option. No more string interpolation and messy logic in the views. http://www.carlosramireziii.com/a-cleaner-way-to-set-multiple-conditional-css-classes-for-link-to.html
Scale your Elasticsearch queries with filtered aliases
Learn how to scale-up your Elasticsearch usage through filtered aliases. The examples provided use Ruby and the elasticsearch-ruby gem.
Writing Clean Monkey Patches (Fixing Kaminari v1.0.0 ArgumentError)
In this article we delve into some clean monkey patching and fix an error with the latest version of Kaminari until the project releases a new version.
Introduction to the JSON API spec and Active Model Serializers
This weeks’ screencast covers the basics of Active Model Serializers and the JSON API spec for Rails to help you implement consistent, cacheable, and efficient JSON for your Rails APIs.
KaTeX bindings for Ruby
You can now render render TeX as HTML from Ruby via KaTeX, using the KaTeX gem. ✨
Packing & Unpacking: A Guide to Reading Binary Data in Ruby
How do you read binary files like PNG, EXE & ZIP? What is the best way to handle binary data in Ruby?
Is Ruby dead? Hell no! - Analysing RubyGems stats for 2016
Another year is behind us and many things have changed in the web development world. We did a little research on the use of Ruby gems and created some stats for 2016 which prove that Ruby is doing very well! Check out our blog post for more detail.
Rails v5 SQL Server Adapter Ready for Business
Sorry for the long delay, but the SQL Server adapter is now Rails 5 ready. This includes support for the latest SQL Server on Linux. Tons of Rails 5 work is coming including better contributor Docker support, schema dumping, JSON type support, and more.
DeepDive for deep controlled cloning of your Ruby objects
DeepDive has been around for a while, and is quite stable. You can specify which variables in your object NOT to clone. So for instance, if you have a back-reference to a “god-object” that you would not want cloned, you would put Read more
Passenger 5.1 released with major improvements in robustness, security, efficiency
Passenger 5.1 contains various improvements for minimizing and preventing down time, introduces more secure defaults and defense in depth, has become faster and uses resources more efficiently, improves developer productivity and updates various ecosystem integrations to stay ahead of the curve.
Complex Sorting in ActiveRecord
The thought process behind creating a simple object to help deal with complex ActiveRecord ORDER BY queries with a strong focus on the Single Responsibility Principal. Read more
Roar 1.1 and Roar JSON API 0.0.1 released!
Roar, the library for consuming and rendering REST API documents, has reached version 1.1! The new release includes compatibility with Representable 3.0 and various bug fixes. Read more
Ruby Survey Results (January 2017)
Here are the results from a Ruby survey I posted a couple of weeks ago.
Keep track of your #100DaysOfCode progress with 1hdoc
Are you joining #100DaysOfCode? 1hdoc makes easy to register and sync your progress. Read more