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.
Integration of Google BigQuery in Rails
checkout my latest blog post about how to integrate Google BigQuery in Rails application and sync data in-between. https://kushalmistry.wordpress.com/2020/03/09/google-bigquery-integration-into-rails/
How lucky I am to have a chance to work with a well written Rails app
Some personal observations on how different development approaches can be and a few opinionated code-organization tips https://link.medium.com/e2QHQ7C6G4
How to run System Specs in DockerContainers with RSpec, Capybara, Chrome, & Selenium
Rails makes system specs easy to configure in a standard environment, but configuring them in a containerised environment can be a little trickier, and more so if you are using RSpec rather than Rails’ default minitest framework. [more inside]
CKEditor 5 + Rails app
https://new-ckeditor-demo.herokuapp.com/ Demo of CKEditor 5 + Rails (and some other my gems which I put on a single demo app). [more inside]
barcharts gem: print barcharts in your terminal in ascii or w/ unicode block elements
Hello, I’ve bundled up a little barcharts gem / library that lets you print barcharts in your terminal in ascii (e.g. use *) or with unicode block elements (e.g.use ` ▏▎▍▋▊▉`). Happy number crunching and visualizing with ruby. Cheers. Prost.
🐐 Herding files – and goats – with git
When refactoring Rails apps, it’s common to rename the file at the same time to follow Rails’ conventions. It’s pretty easy to accidentally lose git history this way, so I wrote some tips about how to deal with it. Plus, bonus goats! 🐐 [more inside]
What's new in Kiba ETL v3 (visually explained)
Kiba ETL is an open-source data processing framework for Ruby, now available in v3. In this new article (with animated SVG), I detail the changes and explain how they improve the way you will write data pipelines with Kiba. Hope you’ll enjoy it! [more inside]
What does API really mean?
API has become one of those catch-all terms that developers throw around without really considering the context. Let’s dive into what is really an API?
Why I Don't Spend My Time Fixing Bugs Anymore
All I wanted, was to build an app. But what I found was even more amazing. [more inside]
25 reasons to switch to Webpacker
Is it worth the effort to migrate JavaScript compilation from the Rails asset pipeline to Webpacker? I think so. In this post, I take a look at the many benefits of making the switch: https://rossta.net/blog/reasons-to-switch-to-webpacker.html
Mistakes I've made treating file paths as strings
It bugs me about how long I’ve manipulated paths as strings without having a failure, but in the last couple of months things have broken in Ruby and Node projects. So I wrote about the issues I’ve faced and how we should approach path names to avoid them (TL;DR use the standard lib Pathname and File.join in Ruby).
How to fully automate renewing of Let’s Encrypt certificates for multiple sites
Let’s Encrypt has announced in the beginning of year, that it will no longer support ACMEv1 protocol for certificate renewal after June 1. 2020. At my work I run 4 Rails application instances with 12 web sites (domains) and have been using Let’s Encrypt certificates for years. They are automatically renewed every month. All I get is a mail indicating that certificates have been renewed. https://www.drgcms.org/blog/damjan-rems-526b8503835d1b13fb000002/how-to-fully-automate-renewing-of-lets-encrypt-certificates-for-multiple-sites-with-ruby-and-2020-03-04
Why Pry is one of the most important tools a junior Rubyist can learn
As programmers we often have to mentally run code. To imagine how a program will behave given certain inputs. This is hard enough for experienced developers. But for juniors? It can seem impossible. In this article, Melissa Williams argues that pry is an invaluable tool for junior rubyists because it allows them to see exactly what is going on as their code is run. https://www.honeybadger.io/blog/debugging-ruby-with-pry/
Building a Rails App With Multiple Subdomains
Learn how to build a Rails app that can support multiple subdomains. [more inside]
SpreadsheetArchitect v4.0.0 is now released!
Spreadsheet Architect v4.0.0 has now been released. Changes include switching to Caxlsx gem, Ruby 2.3+ required, and XLSX freeze support. Check the changelog for more details. https://github.com/westonganger/spreadsheet_architect
How to use horizontal sharding in Rails 6.1
I decided to take the new sharding PR for a spin, and I think you should too! <3 https://dev.to/schwad/how-to-use-horizontal-sharding-in-rails-6-1-4e4k
Optimizing full-text search with Postgres materialized view in Rails
In Ruby on Rails with pg_search gem tt is easy to search columns on associated models. Unfortunately, there is no simple solution to speed up those searches. This article shows how to optimize search with Postgres materialized view. [more inside]
Spree Commerce 4.1 with brand new Storefront UX released!
Spree 4.1 comes with a completely new mobile-first ultra-fast Storefront which you can easily customize to your brand or business requirements. [more inside]
Using Sane Defaults for Rails Apps Configuration
This post explains one of the practices we use to improve web service configuration management. As an example, we will use a Ruby on Rails application running on the Kubernetes environment. However, the general concept of sane defaults is technology-agnostic and entirely applicable to different programming languages and frameworks. - https://dev.to/amplifr/sane-defaults-25pe