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.
Open Source Heroes - A Poem of Appreciation
Working with open source for a long time is tremendous work, often unappreciated. Join me with a moment of sharing a word of appreciation to one of OSS hero you know! [more inside]
Rails 7. Start Kit. Release 1.9
Rails 7. Start Kit is Rails App in a Docker container with some popular preinstalled tools. Release 1.9 is here. In this release I managed and described in the docs all processes related to Front-end tools. ESBuild / ImportMaps / Sprockets - all these tools and how to use them together in a project – read the release notes . Happy coding!
Using Boxcars (Ruby Langchain alternative) to query a Rails DB with natural language
You may have heard of Langchain, the Python library for creating LLM-powered apps with nearly 35k GitHub stars. Despite the large following, Langchain can be difficult to use when you want to go deeper than “hello world” tutorials. This experience led me to Boxcars, a Langchain-inspired Ruby gem but with fewer abstractions. [more inside]
Solidus v4.0 released: removing deprecations and improving Stripe integration
The Solidus Core Team is excited to announce the release of Solidus v4.0! This major release removes deprecated code and features a revamped solidus_stripe gem, making it even easier to integrate with Stripe as your payment gateway. Solidus is a powerful and flexible open-source e-commerce platform built with Ruby on Rails. With v4.0, we’re continuing our commitment to providing developers with a top-notch platform for building online stores. If you’re upgrading from v3.4, please check out the upgrade instructions at https://guides.solidus.io/upgrading-solidus/v4.0 We appreciate your continued support of Solidus, and we can’t wait to see what you’ll build with this new release! To learn more about Solidus, join our community on Slack. Happy coding!
Session Hijacking
In this episode, we explore session hijacking and an approach that we can take to limit the risk. There are some user experience and functionality caveats to this approach so they must be taken into consideration as well. https://www.driftingruby.com/episodes/session-hijacking
A few words on Ruby's type annotations state
A few words I wanted to say on Ruby’s type annotations state that were written in a military training camp and accidentally grew to 5k words.
Montreal.rb May 2023: Integrating REST APIs w/ Microsoft Kiota
The video for the Montreal.rb (Ruby/Rails Meetup) May 2023 talk “Integrating REST APIs with Microsoft Kiota” has been posted! Microsoft Kiota is an open-source technology that can automatically generate SDKs for HTTP REST APIs in Ruby (or any programming language) to save software engineers from having to write error prone API client code that handles authentication, authorization, serialization, and exception handling manually. [more inside]
Rails 7.1 got rid of the apostrophe for the right single quotation mark!
Rails 7.1 got rid of the apostrophe (U+0027) for the right single quotation mark (U+2019), which will likely break your tests. It added a new intersects?
method to ActiveRecord::Relation
.
The Dangerous Query Method Deprecation (And How to Fix it)
Have you ever tried to update a Rails app from 5.2 to 6.0, or from 6.0 to 6.1? If so, you might have seen this deprecation: [more inside]
Welcome to Rails Cheat Sheet
After using Rails for over a decade, I took a step back and tried to think about all the stuff people starting out in Rails should know at https://fly.io/ruby-dispatch/welcome-to-rails-cheat-sheet/. In addition to including all the obvious stuff, I tried to focus more on areas of Rails that are still messy, like assets and deployments, to help fill in some of the undocumented gaps folks might run into.
A Ruby gem to send your ActionMailer mail through one of several delivery methods, se
For more detailed info on the boilerplate and use in development, check out the Mailtrap ActionMailer Balancer article: https://mailtrap.io/blog/actionmailer-balancer/
How to write better specifications for your features
For years, I’ve worked without thinking much about feature specifications. Many teams endure empty Trello cards, neglected Jira tickets, and misaligned communication. So today, I want to share how to write better specifications for your features.
All About Roda With Jeremy Evans | Rubber Duck Dev Show 83
In this episode, we learn all about the Roda toolkit for building Ruby web applications with Jeremy Evans: https://www.rubberduckdevshow.com/episodes/83-all-about-roda-with-jeremy-evans/
Configuring Rails to use HTTPS in local development
Ever wanted to access a Rails app locally over HTTPS? There is a gem called localhost that can make this remarkably easy. However, everyday development using HTTPS requires a few more steps. This post explains how to set up the localhost gem, how to start Rails properly, and how to update OpenSSL to trust the local certificate. Plus, for those of us using Vite as their frontend build system, this post explains how to secure the Vite dev server as well. https://mattbrictson.com/blog/rails-vite-localhost-https
Ask_ChatGPT new release (streaming, CLI, etc)
https://github.com/railsjazz/ask_chatgpt now with streaming support (see response instantly), a CLI tool, and some other improvements. [more inside]
Ruby Retry But Better: Faraday Loop
Ever need a simple way to retry a block of code? Maybe you need a maximum number of retries? Exponential backoff? Different handling for different exceptions? We took the Faraday Retry Middleware which is pretty awesome and just hoisted it up into its own utility without actually using/needing Faraday: Faraday Loop
dry-credentials
Ever wanted to use encrypted credentials in a non-Rails project without having to pull ActiveSomething dependencies? Take a look at the new “dry-credentials” gem. It’s not part of the dry organisation but related in spirit.
Update half a Billion records in Rails
Ever wonder how would Rails handle updating 600M records in PostgreSQL. Answer is Pretty well! In this article I will show you how. [more inside]
7 Common Mistakes in Rails Upgrades
Ruby on Rails is a popular web application framework that is constantly evolving with new versions being released frequently. While upgrading to a newer Rails version can bring new features, better performance, and security patches/improvements, it can also be a challenging task. [more inside]