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.
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.
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
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. -
Brutal 💎🔨
A code-first approach to automate the writing of unit tests, and practice Brutal-Driven Development.
The state of ruby blogs cont. - Top topics or ruby & rails versions in headlines
Hello, I’ve added a couple of more insights to the little survey about the state of the ruby feed-iverse that includes personal blogs, ruby project news and more. New questions incl. Q: What are the top topics / words in headlines? Q: What are the top ruby versions in headlines? Q: What are the top rails versions in headlines? Note: See the planet.ini for all feeds included in the survey. Cheers. Prost. PS: Greetings from Vienna, Austria - this is a Vienna.rb Meetup / Stammtisch project.
Handling Slow Cascading Deletes In Rails
We all inevitably face the compromise of handling cascading deletes in Rails. Do we do dependent destroys (which are ideal but slow) or just let the database handle the cleanup (but loose the lifecycle control)? Neither is idea, so we made a simple utility for how we’ve been doing those types of deletes that’s somewhere in the middle. We call it Miss Hannigan.
Making Ruby on Rails Active Storage module work with Google Cloud Platform, Amazon
It’s here under this link - all you need to know about Active Storage configuration
[Screencast] Syntax Highlighting with Action Text
Set up Action Text with client side Syntax Highlighting using Highlight.js. https://www.driftingruby.com/episodes/syntax-highlighting-with-action-text
A Secret Weapon for Your Rails Apps - RPC With RabbitMQ and Hutch
Communication between two or more applications is often everyday stuff, and it might seem that there is not too much to add there as this subject has been covered pretty well in the last years. Thanks to that, multiple patterns and standards have emerged. You no longer need to think about how the response format should look like for your REST API (go with JSONAPI and stick to the conventions) or figure out the authentication/authorization protocol (go with OAuth and the security headaches won’t bother you). [more inside]
Writing a Ruby Gem Specification
Writing a Ruby Gem Specification article dives deep into, often confusing, attributes of a Ruby gem manifest file. In doing so it demonstrates ways to make your gemspec simple and neat like Marie Kondo’s drawers. Enjoy!
fake_api now works in a simple standalone mode
added a new way to start fake_api in standalone mode. So no need to attach it to the existing app. It’s based on rack/rails so it could be deployed for example to the staging
Benchmarking Ruby 2.7's Numbered Parameters
Quick example of Ruby’s new numbered block parameters syntax and a benchmark against named parameters. [more inside]
Faster Excel Parsing in Ruby
Benchmarking popular gems for excel parsing, featuring a brand new gem optimized for the task. [more inside]
Ruby on Rails Single Line Logging
Reduce the size of the log messages for production environments to one line per request
The State of Ruby Blogs and News - 36 Channels, 1464 Items
Hello, I’ve put together a little survey about the state of the ruby feed-iverse that includes personal blogs, ruby project news and more. Questions include: What’s the update frequency of posts? What feed formats are in use? What servers are in use? What (web site) publishing tools are in use? … Cheers. Prost. PS: See the planet.ini for all feeds included in the survey.
Pros & Cons of Using Ruby on Rails for Web Development
We are huge fans of Ruby on Rails, and have been building web products with RoR for many years. So we have prepared a list of advantages and disadvantages of our favourite framework for web product development. [more inside]
Argon Trail: A Pre-RailsConf 2020 Hike with Planet Argon
If you’ll be in Portland, Oregon for RailsConf this year, there is a hike happening the day before the conference, sponsored by Planet Argon. [more inside]
Rails Development Environment with Docker Compose in Ubuntu 18.04
A long time ago, I did local web development by installing a framework and all its dependencies directly on my laptop. Now, I keep environments isolated from my local machine using containers. Recently, I dove back into Ruby on Rails and wanted to share my process for getting it up and running with Docker Compose! [more inside]