Tutorials

Rails allows using aliased attributes with insert_all and upsert_all | Saeloun Blog
All of us would have used aliases with SQL queries as it makes the table and column names more readable. The renaming is just a temporary change and the table name does not change in the original database.Rails now support aliased attributes with ...

Creating A Web Game With Godot On Rails 7? - YouTube
Ruby on Rails 7 and games aren't really a mix I ever thought would happen. But today we're going to cover how to run a Godot Engine game in Ruby on Rails 7.Because we're not here to ask if we should, we're here to ask if we could.@FinePointCGI 's ...

Ruby on Rails 82 Chained Select Fields in a form. Gem City-State - YouTube
Episode source code: https://github.com/corsego/82-gem-cit...Gem city-state:https://github.com/loureirorg/city-state0:00 Intro1:00 Scaffold Addresses1:41 Gem City-State5:25 Basic validations6:09 Advanced validations12:00 Humanize labels13:45 Form ...


How to Build a Calculator With Hotwire and No Javascript - YouTube
In this video, I'll show you how you can build a calculator with Ruby on Rails' Hotwire, without any Javascript.🎥 Join my new Ruby on Rails Class here: https://mixandgo.com/rails-class👉 Buy my Bulletproof Ruby on Rails Applications eBook: https:...

Avoid test delays and speed up your development cycle by mocking callbacks
Mocking is one way to achieve isolation in tests. It is the practice of using a fake object in place of a collaborator object. In the simplest case, a mock will accept a method call, do nothing, and return a value (usually nil in Ruby). Mocks can ...



Scraping Buy: Scripting for a Purchase - Kevin Murphy
The piece of code I’ve written in the last two months most interesting to me isn’t anything I’ve done for work. It isn’t anything I wrote to find a new job. It doesn’t have tests. It doesn’t even have a class. It’s dirty, not up to my standards, a...

Episode 14 Rodauth Authentication in Ruby on Rails - YouTube
Today, we will learn how to authenitcate our Applications with Rodauth. Rodauth is Ruby's most advanced authentication framework, designed to work in any rack application. It's built using Roda and Sequel, but it can be used with other web framewo...