Tutorials

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

How the Ruby Interpreter Creates Methods on the Fly – Grinding Gears
I was lucky enough to attend last year’s EuRuKo, the travelling European Ruby conference. A theme of the conference (for me) was Ruby’s infamous embrace of metaprogramming, which I’ve had little exposure to in my day-to-day as a Rails dev.The appr...

How to deploy a Rails app to Render - Honeybadger Developer Blog
There are many ways to deploy a Ruby on Rails application to the internet. Between hosting on your own hardware, renting a virtual machine, using a cloud provider, and using a platform, the opportunities are endless. The low-hassle way to host a R...