Tutorials

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...


Effortless RSpec Testing: VSCode Extension for Rails Productivity | LinkedIn
In conclusion, the vscode-run-rspec-file extension helps a lot in the way we approach RSpec testing in Rails development. It integrates testing functionality into our code editor, allowing developers to focus more on coding. Say goodbye to repetit...


Rails link_to and nested data attributes | Masilotti.com
The link_to helper in Rails creates an anchor element, the tag. It accepts an optional block and three parameters: the name of the link, an options hash, and an HTML options hash.In Turbo, adding data-turbo-confirm to the helper can be used to re...