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.
Callee, a Ruby gem to make classes callable
A little mixin that will help to define callable service classes with strict params specification based on dry-initializer DSL. I’ve been using it in several projects and decided to make a gem of it: https://github.com/dreikanter/callee
Ruby on Rails Podcast #280: Past Rubies, Google Pay and Turbolinks!
Nick and Brittany join forces again for a catchup about Past Rubies, Brittany’s Google Pay implementation, and even get into Turbolinks! [more inside]
screen-recorder gem now supports JRuby.
Just released v1.3.0 with support for JRuby. Use this gem to record your desktop, a specific window, or your automated UI (Selenium) tests. https://github.com/kapoorlakshya/screen-recorder
Breaking apart inheritable mattr_accessors in HTTParty
I was debugging HTTParty recently and found a little class. Took me some time to actually understand it. So I thought: “Why not share what I’ve found?” [more inside]
Ruby Refactoring series of videos
Over the last month, I’ve been experimenting with a code taken from a Ruby Refactoring kata called Tennis Game. I’m applying many different techniques to learn from the existing code and to shape a better code. Some of those refactorings are simple, like extracting paramater objects, some are bigger like turning code into data. [more inside]
Reading Ruby Metaprogramming inside Devise
If you’re new to metaprogramming or find it confusing, dive into a popular project to see how it makes things work: Reading Ruby Metaprogramming inside Devise
Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in July? Aug? Sept? Oct?
Hello, I’ve updated the Ruby Conferences ‘n’ Camps in 2019 - What’s Upcoming? Calendar page @ Planet Ruby. What’s upcoming? The line-up includes: Thu-Fri Jul/25-27 (3d) - RubyConf Kenya @ Nairobi, Kenya ++ Fri+Sat Jul/26+27 (2d) - RubyConf Taiwan @ Taipei, Taiwan ++ Thu+Fri Aug/1+2 (2d) - Southeast Ruby @ Nashville, Tennessee, United States ++ Sat Aug/10 (1d) - Deccan RubyConf @ Pune, Maharashtra, India ++ Fri+Sat Sep/6+7 (2d) - RubyConf Thailand @ Bangkok, Thailand ++ Sat+Sun Sep/14+15 (2d) - Kyiv RubyC @ Kyiv, Ukraine ++ Fri+Sat Sep/20+21 (2d) - RubyConf Colombia @ Medellín, Colombia ++ Sun Sep/29 (1d) - RubyConf Indonesia @ Jakarta, Indonesia ++ Thu+Fri Oct/3+4 (2d) - Ancient City Ruby @ Jacksonville Beach, Florida, United States ++ Happy meeting up with rubyists in 2019. Cheers. Prost.
This week in Ruby History: Speeding up Rails with Aaron Patterson
This week’s issue of Past Rubies features a classic Tenderlove talking speed, _why’s Shoes release, hidden Ruby bits, and Ruby on BELLS http://www.pastrubies.com/past_rubies/2
When To Use Rails and React in Your Project
Find out about the benefits of using the Rails and React combo for a tech project: https://www.nopio.com/blog/when-to-use-rails-and-react/
Ruby on Whales: Dockerizing Ruby and Rails development
Vladimir Dementyev (AnyCable, TestProf, ActionPolicy) from Evil Martians shares the cherished Docker config for working with Ruby/Rails apps in development and explains every single line of it.
v1.1.0 released in rails-countries gem!
Now it is available validations and helpers that handles alpha3 and alpha2 of countries, integrated in Rails applications. More features are coming! [more inside]
Kubernetes Deployments: The Ultimate Guide
Let’s say you’ve just dockerized your Rails app. How do you ship it to production? Here’s how it works with Kubernetes.
Migrating from jquery-ujs to rails-ujs
This post guides you through some gotchas that may hit you when trying to migrate from the jQuery unobtrusive JS adapter to the Rails UJS one that is included in Rails 5.1+. [more inside]
Heroku vs self-hosted PaaS
This article explores Heroku and self-hosted “Heroku likes” such as Dokku and CapRover as well as Rancher and Flynn [more inside]
QueryTrack - Tool for finding time-consuming database queries for ActiveRecord
Provides Slack notifications for with backtrace, raw SQL, time duration, etc. [more inside]
The case statement and ranges
In this article, we’re going to explore the following topics:
tty-logger - readable logging for the terminal
The tty-logger lets you log messages with a readable, structured and beautiful output. It boasts many features including logging to any IO stream, metadata info such as time, date, location and ability to customise console output style. Enjoy!
Ruby Quiz - Challenge #15 - Generate the ₿itcoin Address from the Public Key
Hello, I’ve posted a new ruby quiz. Challenge #15 - Generate the ₿itcoin (Base58) Address from the (Elliptic Curve) Public Key. Start from scratch or, yes, use any library / gem you can find. Post your code snippets (or questions or comments) on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Cheers. Prost
Building a RubyGem with Steve Klabnik
In this latest edition of Past Rubies, we revisit building a gem from scratch five years ago this week, and also look at using Rails tutorials from 2005. http://www.pastrubies.com/past_rubies/1