Ruby on Rails 5.1.4 RC1 and 5.0.6.RC1 released

Updates for two version of Ruby on Rails framework available now 
28 August 2017   2596

Good news for Ruby on Rails coders. New 5.1.4 release candidate 1st version and 5.0.6 release candidate 1st version has been released. Final release is p


Let's check what's new for every version.

Rails 5.0.6.rc1

  • Active Record
    • Ensure sum honors distinct on has_many :through associations


Feel free to use this checksum in order to check version of your gem.

$ shasum -a 256 *-5.0.6.rc1.gem
0490ac6c4621756871839ad584f0a0349a72a9ccdeac0f72dafd3539638ba5ef  actioncable-5.0.6.rc1.gem
fc7697724d884307bf2ea307c028902f71f96304b9a882418e6ec94d10202cd9  actionmailer-5.0.6.rc1.gem
b0f1f4479f61ada80b3dbe3e9ccaa0db390119918e5da632dda3c8398e6e4f5f  actionpack-5.0.6.rc1.gem
673d06523edf733163ad668fe3cd64bd1c7fb97244c952241d1e00ee6835101b  actionview-5.0.6.rc1.gem
ac6521d4df459db19fc0f2740d0e0c0a6f3102252c8124ecb25e8d33335d6cf4  activejob-5.0.6.rc1.gem
0824cd58f175a3c825dce9d42d73254d25af25d824ae1c5c3465f12bb0812f72  activemodel-5.0.6.rc1.gem
7972a8a76c711b8fc01ab52d95c4f16a73e9683e4d745a17d61ab91051df856c  activerecord-5.0.6.rc1.gem
40f0c77de7e54b6a3581272ce5b6409ae0c61b5bfad3239db46807d8342ce8a3  activesupport-5.0.6.rc1.gem
7873311d5340bffbabeb33cb9d3ce2c97056bc2bebad3abfcba6f5b38b209075  rails-5.0.6.rc1.gem
3fd4b347f19fb4ff2ec7cee4c9a45aba31d1e287583943269bc9d09bef61ca93  railties-5.0.6.rc1.gem

See GitHub for additional information.  

Rails 5.1.4.rc1 

  • Active Record

    • Ensure sum honors distinct on has_many :through associations

    • Fix COUNT(DISTINCT ...) with ORDER BY and LIMIT to keep the existing select list.

    • Fix unscoped(where: [columns]) removing the wrong bind values

      When the where is called on a relation after a or, unscoping the column of that later where, it removed bind values used by the or instead.

      Post.where(id: 1).or(Post.where(id: 2)).where(foo: 3).unscope(where: :foo).to_sql
      # Currently:
      #     SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 2 OR "posts"."id" = 3)
      # With fix:
      #     SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1 OR "posts"."id" = 2)
    • When a has_one association is destroyed by dependent: destroydestroyed_by_association will now be set to the reflection, matching the behaviour of has_many associations.

  • Railities

    • Allow irb options to be passed from rails console command.


You can use this checksum to check version of your gem.

$ shasum -a 256 *-5.1.4.rc1.gem
6ebb05e31a5d46379f638092742aa1543ab3522302a62351de9e5dc746fc7c77  actioncable-5.1.4.rc1.gem
fb3e3743a29a70524c64caa656056f7cf0085998a1438b28325c6e10a6330efd  actionmailer-5.1.4.rc1.gem
c4b39e9b721a4b2eb37be9f18bfbc0a479b61ae4d6b536b1b9f2fc06f83f6ad8  actionpack-5.1.4.rc1.gem
9930cccacbe71085b894ca0410da07625b801c4db1775b655357bd2bf5824ae9  actionview-5.1.4.rc1.gem
e0c7610f4fe20c778e5f9739f80ae4d5d3450bbacff49d24064b0b3b048f9dd6  activejob-5.1.4.rc1.gem
11dae082bd1dfea9541a60501135bef6c32d792407dea57250dc95ba5e415a77  activemodel-5.1.4.rc1.gem
3b058a80c8f14c324dad4c185825a4ce4c4f853af37002bec92e179bef583fcb  activerecord-5.1.4.rc1.gem
c9984249c0200e9c1f462779294e0cec6bb6c8b95421dc01b579a0efa2db6561  activesupport-5.1.4.rc1.gem
c8134e1efcc5f17ac28927a76423146f3a7baf618d97a5d752d09edf4c5eeb7c  rails-5.1.4.rc1.gem
7589a79f6b4a4de73d2d427193eb9beacd1628530958dd4d8f9404531748a973  railties-5.1.4.rc1.gem

Learn more at GitHub.

If you will face any issue, developers ask you to create an issue and mention @eileencodes.

Ruby/RoR News Digest 30.11 - 6.12

Using Rubyfmt with Atom, overpacking as a common Webpacker mistake, RubyConf 2019 Tony Drake's speech and more 
06 December 2019   104

Greetings! I hope your week went great! Here's new Ruby news digest.

Learn about Ruby 2.7's shorthand syntax for argument forwarding, what's new in Ruby 2.7, Ruby 2019 main takeaways from the keynote (as a text) and much more!


  • Ruby 2.7 Adds Shorthand Syntax for Argument Forwarding 

In Ruby 2.7 you can use the syntax ... in parameter or argument lists to basically ‘pass through’ (or forward) arguments from one method to another

  • Using Rubyfmt with Atom

Rubyfmt is inspired by Go’s gofmt formatting tool and it formats existing Ruby code, and you can set this up as you like 

  • From ActiveRecord Callbacks to Publish/Subscribe Pattern and Event-driven Design

Learn how to move the legacy app from the old design to the new clean way, from activerecord callbacks to event-drive design, in the end

  • Overpacking.. A Common Webpacker Mistake

Learn about the popular Webpacker users' mistake and how to avoid it and save deploy time

  • Ruby - raise or raise Exception - they're both the same

Learn why they are the same


  • What’s New in Ruby 2.7? 

There’s a lot new things coming in 2.7 including controversial stuff like pattern matching, numbered parameters, and keyword argument changes

  • Rubyconf 2019 — Main takeaways from the keynote — Ruby 2.7, 3.0 and the road ahead

If you missed the biggest Ruby event this year - don't worry and check this takeaway

  • A Q&A with Eileen Uchitelle

Interview with staff Software Engineer on the Ruby Architecture Team at GitHub and a member of the Rails Core team.


  • RubyConf 2019 - JRuby: Zero to Scale!  by Charles Oliver Nutter and Thomas E Enebo

  • RubyConf 2019 - Containerizing Local Development... Is It Worth it? by Tony Drake