Rails

Rails Strong Parameters Deep Dive

Explore Rails Strong Parameters, their role in preventing mass assignment vulnerabilities, and how they enhance security and maintainability.

Rails 8 Script Folder and Generator

The new script folder to hold one-off or general purpose scripts, such as data migration scripts, cleanup scripts and a scripts generator.

Rails 8 ISO 8601 TimeWithZone#inspect

Rails 8 ensures TimeWithZone#inspect aligns with Ruby standards, ensuring time formatting consistency across the board by supporting ISO 8601 Style.

Rails 8 add_enum_value if_not_exists

Rails 8 introduces if_not_exists option on add_enum_value, we can now safely add a new enum value, preventing errors if the value already exists.

Rails 8 Parameters#expect Method

Learn how Rails 8's Parameters#expect enhances parameter handling to safely filter and require params, improving security and reducing application errors.

Rails 8 drop_table Accepts Array

Rails 8 allows dropping multiple tables in one call with drop_table by accepting an array of table names in a single migration.

WebAuthn Passwordless Auth in Rails

Learn how to set up WebAuthn in Rails for passwordless authentication, offering a secure and seamless login experience using biometric or hardware-based

Rails 8 Multiple Rate Limits Per Controller

Rails 8 introduces the ability to define multiple rate limits within a controller, offering better flexibility for traffic management.

Rails 7.2 explain Method Enhancements

With Rails 7.2, the object returned by explain now responds to pluck, first, last, average, count, maximum, minimum, and sum methods.

Rails 7.1 Counter Methods Accept By Arg

Rails 7.1 adds a `by` argument to increment_counter and decrement_counter, allowing updates by custom amounts instead of just 1.