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.
Ruby Step-By-Step Guide - Inside Sub1k - The First Thousand Ordinal Inscriptions
is it ordinal summer? i’ve updated the free (online) programming ordinals (in ruby) step-by-step guide / booklet. the new bonus chapter titled Sub 1k - Inside The First Thousand Ordinal Inscriptions - Litecoin Edition shows you how to build a (local) sub1k sqlite database (from scratch / zero) with all metadata and content blobs (using the ordinalslite.com api) - it’s about 160 MB - and than query for analytics / statistics via sql (using activerecord and ordlite). happy programming (and data analytics) with ruby.
Ruby on Rails and the Power of MVC Architecture: A Comprehensive Guide
In the landscape of modern web development, few frameworks have had as profound an impact as Ruby on Rails (RoR). Powered by the elegance of Ruby and the efficiency of the Model-View-Controller (MVC) design pattern, Rails provides developers with tools to craft scalable and maintainable applications. Read at: https://medium.com/@psmy/ruby-on-rails-and-the-power-of-mvc-architecture-a-comprehensive-guide-b50f55950ee0
Split your database seeds.rb by Rails environment
Hey RubyFlow, I just posted a handy article covering how to split your database seeds by Rails environment. Hope you find it useful!
Turbo Stream and personalized content
Ever wanted to render different content for the current user vs other users in partials being handled by Turbo? I frequently do, but I was surprised to find basically nothing online about how to do it. Here’s one approach that works pretty well: https://goodenough.us/blog/2023-08-02-til-turbo-stream-and-personalised-content/
I like my code DAMP
Is keeping our code DRY leading us to trouble? Here are examples from a Ruby project on when it might be ok to bend our tried and true adherence to not repeating ourselves. [more inside]
ordserve gem - Ordinal Inscription Sandbox (Testing) Server / Service
is it ordinal summer? for easy testing of recursive inscriptions (in .SVG or .HTML) i have put together a new ordserve command-line tool and gem that starts up a (loopback) webserver and “automagically” downloads all recursions (referenced via /content/:id
) the first-time only to save / cache locally. the index page has built-in (recursive) samples to get your started. happy recursing in ruby.
How to Run Multiple Versions of Rails on Heroku (New Buildpack w/ Dual Boot Support)
Imagine having the ability to deploy the next version of Rails in a dual booted application on your Heroku staging server or review app before deploying it to production. This capability can help you avoid bugs and downtime in your live environment. In this blog post, we will guide you on how to deploy a Rails upgrade to a staging environment, allowing you to thoroughly test it before it goes live. [more inside]
Projects ideas for learning Ruby or any Ruby web framework
I wrote about ideas/projects that are fit to be approached by someone learning Ruby.
Advanced Usages of Devise for Rails
Let’s dive into some advanced usages of Devise, including the use of OmniAuth, API authentication, and Authtrail: https://blog.appsignal.com/2023/08/02/advanced-usages-of-devise-for-rails.html
Ruby and Jupyter Notebooks
Does Ruby have something similar to Jupyter notebooks? Turns out that you can just use Jupyter notebooks with Ruby if you setup the iruby kernel. Read on to see how. [more inside]
Unlock the Power of Encrypted Attributes in Rails 7!
Are you handling sensitive data like PII in your Rails applications? Rails 7 introduces a game-changing feature: encrypted attributes. This built-in functionality provides an additional layer of security that’s both robust and easy to implement. From initializing encryption keys to declaring encrypted attributes and seamlessly encrypting and decrypting data, this comprehensive guide walks you through the process. Don’t miss the opportunity to enhance your data security. https://psmy.medium.com/encrypting-sensitive-data-in-rails-7-with-encrypted-attributes-f97c2fee7d2e
Slideck - create presentations in the terminal
Happy to introduce slideck for creating Markdown-powered presentations in the terminal. It packs many features like extended Markdown syntax support, YAML configuration and auto-reloading presentation based on file changes. To learn more, please check out documentation.
Automate Rails deployments with GitHub Actions
Automating deployments is a great way to speed up software delivery and reduce the cycle time for feedback. In this post I’ll show you how to create a continuous deployment (CD) workflow using GitHub Actions and SSH-based deployment. Configuring and loading SSH keys requires some extra steps, which I cover in detail. https://mattbrictson.com/blog/deploy-rails-with-github-actions
Overmind 🪬, a better bin/dev for your Procfile
If you’ve ever used foreman
or bin/dev
to run your processes, you’re going to want to check out Overmind, a better bin/dev. [more inside]
Evaluating Tech Tools with Kota Weaver | Rubber Duck Dev Show 94
In this episode, we discuss some ways you can evaluate your tech stack with Kota Weaver: https://www.rubberduckdevshow.com/episodes/94-evaluating-tech-tools-with-kota-weaver/
bitgen gem v1.0.0 - generative (pixel) image machinery & helpers (incl. Gen-BRC721)
is it ordinal summer? for easy (re)use (off-chain) i have started a new bitgen gem / library that collects the generative (pixel) image machinery / scripts for (on-chain) protocols such as (historic) Gen BRC-721 that lets you generate ordibots, ordibotmrs, satoshi’s pets, blooming flowers, & more. happy pixel pushing with ruby.
Many ways to write RSpec custom matchers
How to create custom RSpec matchers using different approaches: https://dev.to/povilasjurcys/many-ways-to-write-rspec-custom-matchers-m23
Dear AI, can you translate the Rails Guide for me?
I don’t know if anyone has already done this but I think it’s a good idea. I’ve done some experiments and translated it into several languages. Please share some thoughts if you’d like 😀 [more inside]