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.
XDG 3.0.0 - New Gem Ownership
XDG is a great way to organize your program’s configuration, cache, and data. After ~7 years of inactivity the XDG gem is now under new stewardship. 🎉 With the 3.0.0 version, there is a new implementation and API that adheres to the XDG specification. If you need additional functionally beyond what the XDG specification provides then check out the companion Runcom gem. Enjoy!
Gem which helps initialize class instance with .call method.
.call(*args) => #new.call(*args) [more inside]
Graphs in Ruby
This gem allows to create simple directed and undirected graphs. Basic operations allows easily implement graph algorithms.
Object Equality in Ruby
In Ruby, as any classes inherit directly (or not) from the Object class, then the object equality logic is implemented between the Kernel module and the BasicObject class. [more inside]
Ruby on Rails - Bounded contexts via interface objects
In this Article I’ll show you how to organize business classes in Ruby on Rails so your application can benefit from Bounded Contexts while still keep Rails conventions and best practices. Solution is also friendly for junior developers. [more inside]
[Interview] Rails Upgrades with Eileen Uchitelle
The Maintainable Software Podcast interviewed Eileen Uchitelle from Github about Rails upgrades last week. Here’s the transcription from the first half of that interview. [more inside]
From capybara-webkit to Headless Chrome and ChromeDriver
From capybara-webkit to Headless Chrome and ChromeDriver [more inside]
Understanding Ruby: String Encoding, ASCII & Unicode
Do you know the difference between ASCII & Unicode?
Vandal - ActiveRecord force destroy records with all related associations.
A small gem that helps to delete an ActiveRecord instance or collection with associations (skipping callbacks or validations). It may be useful to remove broken data on test servers or locally. [more inside]
Choosing Ruby On Rails For Your Next Web Development
Choosing Ruby On Rails For Your Next Web Development Project is the 70 pages-long single resource on Ruby on Rails covering all the main topics related to the framework. Written from a business perspective, aimed to help product owners, startup founders, and C-level executives make better decisions when it comes to web development. You can read it here: Ruby On Rails Development Guide
Accessing Google Sheets with Ruby
If you have some data in Google Sheets (perhaps you have a team collaborating there) and you’d like to use that data in your Ruby applications, this short video tutorial will show you how.
Ruby PaaS Hosting in Multi-Cloud
Explore the possibilities of Ruby PaaS hosting services from Jelastic Multi-Cloud: easy deployment, automatic vertical and horizontal scaling, pre-configured stacks with versioning, out-of-box frameworks support, intuitive management and lots of other benefits
Ruby on Rails vs Node JS
Node.js and Ruby on Rails are two popular solutions used in web development. Check which technology is better for your app Ruby on Rails vs Node.js comparision
tty-prompt v0.19.0 fresh look
The newest tty-prompt changes the UI elements look & feel to be even more intuitive. It now lets you navigate the select and multi_select prompts by page. It also allows you to limit the number of selected items in the multi_select prompt. Enjoy!
A Fixture-Based Approach to Interface Testing in Rails
Some tips and tricks about how to prettify RSpec-based specifications of remote APIs
Client Side Form Validation With Stimulus and Rails
Client side form validation is fairly easy to do with a framework such as Angular or Ember, but how can we get client validation with just Rails and Stimulus? With a sprinkling of Javascript, we can see just how easy it is to add some client side validation. [more inside]
Redirecting to static webpacker Content With Rails
With the release of Rails 6, webpacker is the new default compilation pipe for Javascript assets. Learn how to create a standalone widget file which redirects to webpacker compiled assets. [more inside]
simple helper to get proper redirect :back url
how to get proper URL to :back page: [more inside]
rubocop-config-prettier
I created rubocop-config-prettier gem to turn off all rules that are unnecessary or might conflict with prettier plugin ruby.
Ruby 2.7 adds Enumerable#filter_map
Ruby adds filter_map as a shorthand for filter+map [more inside]
Ruby mixins explained
How to use ruby mixins for drying up code.