---
title: "#346: Rails 5.1 Released: The One Where DHH Embraces JavaScript"
publication: "Ruby Weekly"
issue: 346
published_at: "2017-04-27"
canonical_url: "https://rubyweekly.com/issues/346"
---

Ruby Weekly 346   

This week's Ruby and Rails news -[Read this on the Web](http://rubyweekly.com/issues/346) 

[Ruby Weekly](http://rubyweekly.com) Issue 346 — April 27, 2017         

Sorry for the delay, but we were waiting for the final release of Rails 5.1 :-) 

[Rails 5.1 Released: The One Where We Embrace JavaScript](http://weblog.rubyonrails.org/2017/4/27/Rails-5-1-final/?utm_source=rubyweekly&utm_medium=email) — The final release of Rails 5.1 came at RailsConf last night. JavaScript has been embraced, there’s a new system tests feature, encrypted secrets, and more. To learn more, consider [this screencast](https://www.driftingruby.com/episodes/ruby-on-rails-5-1-0-changes-and-new-features) or maybe the [full release notes.](http://guides.rubyonrails.org/5_1_release_notes.html) David Heinemeier Hanssonnews 

[Oj (Optimized JSON) 3.0 Released](http://www.ohler.com/oj/index.html?utm_source=rubyweekly&utm_medium=email) — The alternative C-based JSON encoding and decoding library is now fully compatible with Ruby 2.4’s ‘json’ gem and Rails 5. Peter Ohlernews 

[Sidekiq 5.0 Released: Now Rails 5 Ready](http://www.mikeperham.com/2017/04/25/hello-sidekiq-5.0/?utm_source=rubyweekly&utm_medium=email) — The popular background job processing system is now Rails 5 native, supports right-to-left languages, better handles malformed job payloads, but Ruby 2.1 support has been dropped. Mike Perhamnews 

[Founders/CTOs: We upgrade Rails so that your team doesn't have to.](https://www.upgraderails.com/) — Rails 5.1 is here! Is your app falling behind? If you're dreading the upgrade, we can help. Let our expert team upgrade your Rails app so that you can focus on features, not maintenance. Talk to us to learn how. UpgradeRailssponsored — [![\](https://copm.s3.amazonaws.com/82dfd256.png)](https://www.upgraderails.com/) 

[Write Native Ruby Extensions 'Without Fear'](https://usehelix.com/?utm_source=rubyweekly&utm_medium=email) — Lets you write Ruby classes in Rust without having to write the glue code yourself. Helixtools 

[Bootsnap: Boot Large Ruby/Rails Apps Faster with Added Caching](https://github.com/Shopify/bootsnap?utm_source=rubyweekly&utm_medium=email) — Seems like the kind of thing that could work its way into Rails core. Shopifycode 

[Search and Autocomplete in Rails with Postgres](https://www.sitepoint.com/search-autocomplete-rails-apps/?utm_source=rubyweekly&utm_medium=email) — A walkthrough of setting up a search and autocomplete feature in a Rails 5 app using Postgres for its database. Ilya Bodrov-Krukowski 

[A Ruby Shadowing Bug in The Wild](https://thomasleecopeland.com/2017/04/20/shadowing-bug-in-the-wild.html?utm_source=rubyweekly&utm_medium=email) — This example highlights why I take the possibly controversial approach of prefixing all internal object method calls with `self.` Tom Copeland    

[Senior Ruby Developer](http://careers.unbounce.com/software-developer-customer-portal/) — If you are a Ruby on Rails developer who loves tackling atypical Rails challenges, ask us about ours - we are happy to tell you more. Unbouncesponsored [Senior & Junior Ruby on Rails Developers - Bright Funds (San Francisco)](https://www.brightfunds.org/jobs/515004?gh_jid=515004?utm_source=newsletter&utm_medium=email&utm_campaign=ruby-news-april-29) — We're looking for developers, to help transform the charitable giving landscape through corporate workplace giving programs and beyond. Bright Fundssponsored 

[Bundler's New Update Options](https://depfu.io/blog/2017/04/25/bundlers-new-update-options?utm_source=rubyweekly&utm_medium=email) — These options give more control over `bundler update`. Florian Munznews [Rails 5.1 Introduces 'Date#all_day' Helper](http://blog.bigbinary.com/2017/04/24/rails-5-1-has-introduced-date-all_day-helper.html?utm_source=rubyweekly&utm_medium=email) — So `User.where(created_at: Date.today.all_day)` gets all user records created today. Prathamesh Sonpatkinews [Haml 5.0 Released with 3x Perf Boost and Rails 5.1 Support](https://rubygems.org/gems/haml?utm_source=rubyweekly&utm_medium=email) rubygems.​orgnews [Mastering Ruby Exceptions](https://honeybadger.leadpages.co/exceptions/?utm_source=rubyweekly&utm_medium=email) — How well do you know Ruby's exception system? This free book will take you from novice to expert. Honeybadger Exception Monitoringsponsored [Session Routing via HTTP Headers with Fly and Rails](https://fly.io/articles/routing-via-http-headers-with-rails-4/?utm_source=rubyweekly&utm_medium=email) — Route your users across multiple apps based on session headers. Interesting. Fly.​io [Why Is Ruby Multithreading Slow?](https://medium.com/@dathanbennett/why-is-ruby-multithreading-slow-96afb475f669?utm_source=rubyweekly&utm_medium=email) — Spoiler: It isn’t. Dathan Bennett [The Good, Bad and Ugly: The Story of a Rails 5 Upgrade](https://blog.adwyze.com/the-good-the-bad-the-ugly-story-of-a-rails-5-upgrade-c733e727e792?utm_source=rubyweekly&utm_medium=email) — A good list of issues you may find and mitigations you can use when upgrading to Rails 5. Pawan Dubey [Automatic Username Generation in Rails](https://alexcastano.com/generate-unique-usernames-for-ruby-on-rails/?utm_source=rubyweekly&utm_medium=email) Alex Castaño [How A Hard-to-Detect Misspelling Led to Intermittent Failures](https://www.schneems.com/2017/04/24/a-variable-by-any-other-name/?utm_source=rubyweekly&utm_medium=email) Richard Schneeman [How to Parse Ruby Objects in Haskell](https://filib.io/posts/2017-04-24-parse-ruby-objects-in-haskell.html?utm_source=rubyweekly&utm_medium=email) — The use case is the ability to share a session between Ruby and Haskell web applications. Philip Cunningham [Saving Nested Models with Form Objects and Transactions](https://revs.runtime-revolution.com/saving-multiple-models-with-form-objects-and-transactions-2c26f37f7b9a?utm_source=rubyweekly&utm_medium=email) Guilherme Simões [Your Ops Issues Solved](https://reinteractive.com/enquiries/new?code=ops_care&sid=123&utm_source=rubyweekly&utm_medium=email) — DevOps solutions for Rails Apps: blue green deploys, 24/7 monitoring and atomic rollbacks to keep your app at its best. Reinteractivesponsored [How to Install Rails and Postgres on Windows 10](https://www.youtube.com/watch?v=u_JFDqax0l0&utm_source=rubyweekly&utm_medium=email) — Uses the Windows Subsystem for Linux to install and configure a vanilla Rails app. Mirror Communicationsvideo [The 10 Hour Unfiltered RailsConf Live Stream from April 26](https://www.youtube.com/watch?v=gHoNNdeedf0&utm_source=rubyweekly&utm_medium=email) — It’ll get broken out into proper videos later but if you’re hankering for some RailsConf _now_.. Confreaksvideo [Comparing Rails Performance on Ruby 2.0, 2.1, 2.2, and 2.3](http://engineering.appfolio.com/appfolio-engineering/2017/4/14/comparing-ruby-speed-differences?utm_source=rubyweekly&utm_medium=email) Noah Gibbs [Rooby: A New, Ruby-Like Language Written in Go](https://github.com/rooby-lang/rooby?utm_source=rubyweekly&utm_medium=email) github.​comtools [Continuous Integration and Delivery for Ruby Projects Made Easy](https://circleci.com/features/ruby/?utm_source=rubyweekly&utm_medium=email&utm_content=ruby-weekly) CircleCItools sponsored [acli: A Command-Line Client for Action Cable](https://github.com/palkan/acli?utm_source=rubyweekly&utm_medium=email) — Written in mruby. Vladimir Dementyevcode [Postal: A Mailing System (a la Sendgrid or Mailgun)](https://github.com/atech/postal?utm_source=rubyweekly&utm_medium=email) — Essentially an email delivery platform you can run on your own servers. aTech Mediacode     [Read this issue on the Web](http://rubyweekly.com/issues/346) [See our archives](http://rubyweekly.com/issues) [Change your email address](*|UPDATE_PROFILE|*)  [Stop getting this newsletter](*|UNSUB|*)  

Published by [Cooperpress](https://cooperpress.com/)
Fairfield Enterprise Centre, Lincoln Way, Louth, LN11 0LS, UK
