Ruby on Rails 6.0 is here, and it’s action-packed!
It’s been a long time coming and it looks like it was worth the wait! Ruby on Rails 6 brings a whole heap of changes with it. In addition to fixes and improvements, there’s also Action Mailbox, Action Text, Parallel Testing, multiple databases & more. Let’s take a closer look.
A new version of open source framework Ruby on Rails has been released, and it’s got a bunch of new features. We’ve outlined the biggest changes below.
Two new frameworks
Action Mailbox allows incoming emails to be routed to controller-like mailboxes for processing in Rails. It comes with ingresses for Amazon SES, Mailgun, Mandrill, Postmark, and SendGrid, and can also deal with inbound emails directly with the built-in Exim, Postfix, and Qmail ingresses.
Another new framework, Action Text, means rich text content and editing are now possible in Rails. It also includes Basecamp’s Trix editor, and any rich text content created by it is saved in its own RichText model that’s associated with any existing Active Record model in the application. Embedded images and other attachments are stored using Active Storage and associated with the RichText model.
This feature allows the test suite to be parallelized, reducing the amount of time necessary to run a test suite and helping users get the most out of their CPU cores. Forking processes is the default technique, but threading is also supported.