Rails 6 Adds Action Mailbox And Parallel Testing
Written by Kay Ewbank   
Friday, 23 August 2019

There's a major update to Ruby on Rails that adds an action mailbox, action text, ability to use multiple databases, and parallel testing. The new version also supports Webpacker by default and Zeitwerk.

Ruby on Rails is a web-application framework written in Ruby. It's intended for creating database-backed web apps using the model–view–controller framework.

rails logo

The new action mailbox framework lets you route incoming emails to controller-like mailboxes for processing in Rails. It comes with the ability to work with mails from Amazon SES, Mailgun, Mandrill, Postmark, and SendGrid. You can also handle inbound mails directly via the built-in Exim, Postfix, and Qmail ingresses.

Action text is another framework, this time providing support for rich text content and editing in Rails. It uses the Trix editor for much of its functionality, including formatting, handling links, lists, embedded images and galleries. The rich text that's generated is saved in its own RichText model that's associated with any existing Active Record model in the application.

There's better support for multiple databases so apps can connect to more than one database at once. The support comes via a simple API.

Parallel testing support has also been added to this release. This means you can make use of multiple cores so large test suites run faster. Each testing worker gets its own database and runs in its own thread.

Other improvements include a change to use Webpacker as the default JavaScript bundler for Rails through the new app/javascript directory. The developers say they're still using the asset pipeline with Sprockets for CSS and static assets, and have found that the two:

"integrate very nicely and offer the best trade-off of advanced JavaScript features with an it-just-works approach to other assets."

The new release has also moved to use Xavier Noria’s new Zeitwerk code loader for Ruby. Elsewhere, Rails has action cable testing; the Action Cable JavaScript has been rewritten in ES6, and the new version offers protection against DNS rebinding attacks.

rails logo

More Information

Ruby On Rails

Related Articles

Top 10 From Around The Web: Ruby On Rails Resources

Top 10 From Around The Web: More Ruby On Rails Resources

Ruby On Rails Reaches 5.0

Ruby 2.3 Released

Ruby And Rails Updated

Ruby 2.1 With Better Garbage Collection

To be informed about new articles on I Programmer, sign up for our weekly newsletter,subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

Banner


A Turing Machine In LEGO
06/10/2024

A Turing Machine is one of those abstract ideas that is much easier to undertand if you can see it working. Now there's a proposal on the LEGO Ideas site for a Working Turing Machine. Lend it your sup [ ... ]



Java Version 23 Released
30/09/2024

It was in April 2024 that we had Java 22. Now after just 6 months there's version 23, which is a STS release with lots of features in preview status.


More News

kotlin book

 

Comments




or email your comment to: comments@i-programmer.info

 

Last Updated ( Friday, 23 August 2019 )