---
title: "What's new in Rails 6"
publication: "Ruby Weekly"
issue: 440
published_at: "2019-03-07"
canonical_url: "https://rubyweekly.com/issues/440"
---

This week's Ruby news, issue 440       

#440 — March 7, 2019 

[Read on the Web](https://rubyweekly.com/issues/440)   

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/iczat6r8wdwtqk5fya4u.jpg)](https://www.driftingruby.com/episodes/what-s-new-in-rails-6)  

▶[What's New in Rails 6](https://www.driftingruby.com/episodes/what-s-new-in-rails-6) — Last week’s release of [Rails 6 beta 2](https://weblog.rubyonrails.org/2019/2/25/Rails-6-0-beta2-released/) has us all interested in Rails 6 again, and here we get to see the new bits in a tight, well-produced video _(11 minutes)_. 

Drifting Ruby   

[RubyGems Updated Due to Vulnerabilities](https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html) — Several vulnerabilities, including one where a gem author could package a gem in such a way as to delete arbitrary directories, get fixed in [3.0.3](https://blog.rubygems.org/2019/03/05/3.0.3-released.html) and [2.7.9](https://blog.rubygems.org/2019/03/05/2.7.9-released.html) so upgrade now. 

Hiroshi Shibata   [![\](https://copm.s3.amazonaws.com/fb4b64fb.png)](https://www.honeybadger.io/for/ruby/?utm_source=rubyweekly&utm_medium=email&utm_campaign=ruby) 

[DevOps Monitoring, for Developers. *Gasp* 😲](https://www.honeybadger.io/for/ruby/?utm_source=rubyweekly&utm_medium=email&utm_campaign=ruby) — Honeybadger simplifies your production stack by combining exception monitoring, uptime monitoring, & check-in monitoring into a single, easy to use platform. Surprise & delight your users by fixing errors before they even have a chance to complain. 

Honeybadger sponsor   

[Ten Steps for Securing Your Web Applications](https://blog.heroku.com/ten-ways-to-secure-your-apps) — _“Security is hard.”_ This post helps you handle both intended and _unintended_ functionality. Make it a checklist for your apps. 

Joe Kutner (Heroku)   

[Webpacker 4.0 Released](https://github.com/rails/webpacker) — Webpacker makes it easy to use the popular [webpack](https://webpack.js.org/) JavaScript bundler with your Rails apps. If you need to upgrade from using Webpacker 3.5, [here’s an upgrade guide.](https://github.com/rails/webpacker/blob/master/docs/v4-upgrade.md) 

Ruby on Rails   

[Ruby Trickery](https://ryanbigg.com/2019/03/ruby-trickery) — _“Please, do not use any code in this blog post in production systems. It can cause weird behavior.”_ Still, these tricks (things like overriding addition and playing with unary methods) are kinda fun. 

Ryan Bigg  

💻 Jobs  

[Ruby on Rails Developer at X-Team (Remote)](https://x-team.com/remote-ruby-on-rails-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=ruby) — Join the most energizing community for developers. Work from anywhere with the world's leading brands. 

X-Team   

[Software Engineer - Backend (Poland)](https://shedul.workable.com/j/92C6EACEED?viewed=true) — Help us bend Ruby and Elixir to our will on our quest to revolutionize the beauty and wellness industry. 

Shedul   

[Find A Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-77582) — Vettery specializes in dev roles and is completely free for job seekers. 

Vettery  

📘 Articles & Tutorials  

[Ruby's Hidden Gems: StringScanner](https://blog.appsignal.com/2019/03/05/stringscanner.html) — If you’ve not used the `StringScanner` class (it’s part of Ruby’s standard library), this post on using it to parse a log message into a JSON object will be fruitful. 

Michael Kohl   

[A Look at MJIT Support in Ruby 2.6](https://blog.bigbinary.com/2019/03/05/mjit-support-in-ruby-2-6.html) 

Sudeep Tarlekar   

[Ruby’s Many CLI Option Flags and How To Use Them](https://www.rubyguides.com/2019/03/ruby-cli-options/) — `ruby -c -w -e 'puts "Ruby has more CLI options than you probably expect."'` What do you think that does? 

Jesus Castello   

[Why Don't We Validate Controller Parameters?](https://frontdeveloper.pl/2019/03/why-dont-we-validate-controller-parameters/) — Validations are standard practice in ActiveRecord, but what about in controllers for `params`? [apipie-rails](https://github.com/Apipie/apipie-rails) makes it easy. 

Igor Springer   

[New Microsoft Azure Elastic Agent Plugin for GoCD](https://www.gocd.org/?utm_campaign=Azure&utm_medium=newsletter_ad&utm_source=cooperpress_ruby&utm_content=Azure_plugin&utm_term=) — Run your CI/CD pipelines on Azure virtual machines. Let GoCD scale up on-demand agents based on your needs. 

GoCD sponsor   

[Rails 6 Adds Negative Scopes on Enums](https://blog.bigbinary.com/2019/03/06/rails-6-adds-negative-scopes-on-enum.html) — In other words, it adds `not_` prefixed scopes on enum attributes. 

Abhay Nikam   

[Approaches for Speeding Up Your Rails Apps](https://medium.com/@daniellempesis/speeding-up-your-ruby-on-rails-app-4c37ec71b126) — You’ve probably heard all of this before, but can you ever hear it enough? 

Daniel Lempesis   

[Debugging Sidekiq Poison Pills](https://engineering.gusto.com/debugging-sidekiq-poison-pills/) — _“That one time a memory leak almost took down one of our apps – and how we fixed it.”_ 

Brittney Johnson (Gusto)   

[Solving Slack-Side Disconnects in `slack-ruby-client`](https://code.dblock.org/2019/03/04/solving-slack-side-disconnects-in-slack-ruby-client.html) — The story & approach behind debugging an issue experienced by users of a Slack client library. 

Daniel Doubrovkine   

[Deconstructing Shopify's Monolith](https://engineering.shopify.com/blogs/engineering/deconstructing-monolith-designing-software-maximizes-developer-productivity) — Shopify has one of the largest Ruby on Rails codebases in existence and its system was, for years, a huge monolith. This post looks at the limits they ran into and why and how they migrated to a microservices-based approach. 

Kirsten Westeinde (Shopify)  

🔧 Code & Tools  

[StoreModel: A Gem for Handling JSON-Backed Attributes as ActiveRecord Models](https://github.com/DmitryTsepelev/store_model) — Rather than deal with JSON columns as hashes, treat them as mini models of their own. 

Dmitry Tsepelev   

[mrubyc/c: An Alternative Implemention of `mruby`](https://github.com/mrubyc/mrubyc) — [mruby](https://github.com/mruby/mruby) is a lightweight, embeddable Ruby interpreted being worked on by Matz himself. _This_, however, is an alternative implementation aimed at even smaller memory use cases (down to 40KB memory size). 

Shimane IT Open-Innovation Center   

[Pagy 2.0: The 'Ultimate' Pagination Gem](https://github.com/ddnexus/pagy) — Works with all Rack-based frameworks and is storage/ORM agnostic. 2.0 improves i18n support, is faster, and works on more versions of Ruby than before. 

Domizio Demichelis   

[Share Your Whole Stack with Your Team with One Workflow 👩‍💻](https://www.manifold.co/features?utm_source=newsletter&utm_medium=sponsorship&utm_campaign=RubyWeekly&utm_content=March1) 

Manifold sponsor   

[slack-ruby-client: A Ruby Client for Slack's Web, Real Time Messaging and Event APIs](https://github.com/slack-ruby/slack-ruby-client) 

Daniel Doubrovkine, Artsy and Contributors   

[PyCall: Call Python Functions from Ruby](https://github.com/mrkn/pycall.rb) 

Kenta Murata         

Curated by [Glenn Goodrich](https://twitter.com/ruprict) and [Cooperpress](https://cooperpress.com/) 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
