Tutorials

Flash Messages (notifications) in Rails Apps - DEV Community
The example use of flash messages above work perfectly fine when you are doing a redirect in the controller's action. Still today, after almost 20 years. But today, you can also render something without redirecting the page, using turbo (streams)....

Notes from migrating from Minitest to RSpec, with help from GitHub Copilot | Everyday Rails
After some discussion, my team at work decided to port our newest Ruby on Rails application’s test suite from the default Minitest to RSpec. I picked up the ticket not because I enjoy tedious work, but because I thought it’d be a good excuse to te...


Using dry-validation with Grape | On coding and tools
Grape is a popular web framework for Ruby, an alternative to Rails when writing an API-only application.dry-validation is a flexible library for implementing data validation logic, something one tends to need more as their project grows.When an AP...

Let's build a Hanami app - Honeybadger Developer Blog
Hanami is a full-stack Ruby web framework. Unlike Rails, which has many default assumptions about how an app should be built, Hanami promises developer freedom by not imposing too many such defaults.The framework is also blazingly fast due to its ...

What Does the Frozen String Literal Comment Do in Ruby?
Frozen strings not only prevent unintended modifications, but also reduce the overhead of the garbage collector by eliminating unnecessary memory allocations, thus improving application performance. This post explains the concept of freezing along...



Build a Chat App with Ruby on Rails and Ollama - YouTube
This video is a modification of an earlier popular tutorial ( • How To Integrate Chatgpt With Rails 7... ) that demonstrated how to create a chat interface using Ruby on Rails and ChatGPT.Unlock the power of local language models with this game...