Rails7

Rails 7 GROUP BY and HAVING in Updates

With Rails 7, we can now combine GROUP_BY and HAVING clauses with a more complex update and delete queries.

Rails 7 Action Text attachment_tag_name

Rails 7 adds support for setting `config.action_text.attachment_tag_name` to replace the actiontext's default attachment HTML tag name to a custom string.

Rails 7 adds caching? and uncachable! helper

Starting with Rails 7, we can add caching? helper to check whether the current code path is being cached and uncacheable! helper to avoid fragment caching.

Rails 7 date_select :day_format Option

Now format how the day looks in a date select dropdown using `day_format`.

Rails 7 I18n translate Defaults

Provide fallback values to the translate method apart from those parts of the translation string.

Rails 7 Safe Redirect Location Check

Now determine if a URL is an internal one before redirecting.

Rails 7 added --css app generator

Rails 7 added --css app generator for configuring CSS processors.

Rails 7 Import Maps Replace Webpacker

A new Rails skeleton will not have to require the full JavaScript toolchain with Webpack by default as Rails 7 embraces the future of Javascript.

Rails 7 ActiveJob Priority Testing

Rails 7 gives us option to set `:priority` in test helper methods `assert_enqueued_with` and `assert_performed_with`.

Rails 7 JavaScript Generator Options

Rails 7 introduces built-in support for webpacker and esbuild.