{"id":6263,"date":"2019-08-26T07:50:06","date_gmt":"2019-08-26T07:50:06","guid":{"rendered":"https:\/\/gtechbooster.com\/?p=6263"},"modified":"2023-06-21T11:42:55","modified_gmt":"2023-06-21T11:42:55","slug":"rails-6-gets-action-mailbox-and-parallel-testing","status":"publish","type":"post","link":"https:\/\/gtechbooster.com\/rails-6-gets-action-mailbox-and-parallel-testing\/","title":{"rendered":"Rails 6 gets Action Mailbox And Parallel Testing"},"content":{"rendered":"\n<p>There&#8217;s a major update to Ruby on Rails that adds an action mailbox, \naction text, ability to use multiple databases, and parallel testing. \nThe new version also supports Webpacker by default and Zeitwerk.<\/p>\n\n\n\n<div class=\"gtech-migrated-from-ad-inserter-placement-2\" style=\"text-align: center;\" id=\"gtech-688850628\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-4147301944\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/17207\" rel=\"noopener\" class=\"notrack\" aria-label=\"26001\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg 1024w, https:\/\/gtechbooster.com\/media\/2023\/01\/26001-768x960.jpeg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"500\" height=\"625\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div><p>Ruby on Rails is a web-application framework written in Ruby. It&#8217;s  intended for creating database-backed web apps using the  model\u2013view\u2013controller framework.<\/p>\n\n\n\n<p>The new action mailbox framework lets you route incoming emails to \ncontroller-like mailboxes for processing in Rails. It comes with the \nability to work with mails from Amazon SES, Mailgun, Mandrill, Postmark,\n and SendGrid. You can also handle inbound mails directly via the \nbuilt-in Exim, Postfix, and Qmail ingresses.<\/p>\n\n\n\n<p>Action text is another framework, this time providing support for \nrich text content and editing in Rails. It uses the Trix editor for much\n of its functionality, including formatting, handling links, lists, \nembedded images and galleries. The rich text that&#8217;s generated is saved \nin its own RichText model that&#8217;s associated with any existing Active \nRecord model in the application.<\/p>\n\n\n\n<p>There&#8217;s better support for multiple databases so apps can connect to \nmore than one database at once. The support comes via a simple API.<\/p>\n\n\n\n<p>Parallel testing support has also been added to this release. This \nmeans you can make use of multiple cores so large test suites run \nfaster. Each testing worker gets its own database and runs in its own \nthread.<\/p>\n\n\n\n<p>Other improvements include a change to use Webpacker as the default \nJavaScript bundler for Rails through the new app\/javascript directory. \nThe developers say they&#8217;re still using the asset pipeline with Sprockets\n for CSS and static assets, and have found that the two:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>&#8220;integrate very nicely and offer the  best trade-off of advanced JavaScript features with an it-just-works  approach to other assets.&#8221;<\/em><\/p><\/blockquote>\n\n\n\n<p>The new release has also moved to use Xavier Noria\u2019s 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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More Information<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"http:\/\/rubyonrails.org\/\">Ruby On Rails<\/a><\/li><\/ul>\n<div class=\"gtech-end-cont\" id=\"gtech-3853829316\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-2193075894\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/76065\" rel=\"noopener\" class=\"notrack\" aria-label=\"26002\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2025\/10\/26002.jpg\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2025\/10\/26002.jpg 1200w, https:\/\/gtechbooster.com\/media\/2025\/10\/26002-768x768.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" width=\"500\" height=\"500\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>There&#8217;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&#8217;s intended for creating database-backed web apps using the model\u2013view\u2013controller framework. The [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":6264,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1915],"tags":[6,694],"class_list":["post-6263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ndocs","tag-programming","tag-ruby"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/6263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/comments?post=6263"}],"version-history":[{"count":0,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/6263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media\/6264"}],"wp:attachment":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media?parent=6263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/categories?post=6263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/tags?post=6263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}