Rails

Rails 6 - Action Mailbox tryout

Rails 6 has added Action Mailbox to process inbound emails. This post tries a deep dive trying to set it up

Rails 6 - Active Storage changes

Rails 6 brings in image_processing gem, support for different image types and improvements in Active Storage.

Rails 6 adds guard against DNS rebinding attacks

Rails 6 adds guard against DNS rebinding attacks by allowing whitelisting of hosts in config

Rails 6 removes Action View helper image_alt

Rails 6 removes the deprecated `image_alt` helper from Action View.

Rails 6 adds after_save_commit

Rails 6 adds after_save_commit callback shortcut.

Using bind parameters in Active Record for SQL security and performance

Using bind parameters in Active Record for improved SQL security and performance

Rails 6 adds tools for Action Cable testing.

Rails 6 adds tools for Action Cable testing.

Rails 6 adds Active Record Relation#pick

Rails 6 adds `ActiveRecord::Relation#pick` to pick the first value from the named column in the relation.

Rails 6 adds delete_by and destroy_by methods.

Rails 6 ActiveRecord::Relation added two new methods delete_by and destroy_by.

Simplifying Multi-Environment Credentials in Rails 6

Rails 6 adds multi-environment credentials support, making it easier to manage environment-specific secrets for better security and organization