Goodbits logo black in white circle

This week in Rails

Past issues
Aug 22 Oct 10

Aug 29 2014

Issue #21


Logo for This week in Rails

Issue #21

Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails. Without further to do, let's dive right into the highlights of the week!

Featured

Rails is great

Rails is great

A critical issue that appears to affect many users has been reported this week. The core team has acknowledged the report and has plans to address this down the road. Stay tuned.

Help document Rails 4.2!

Help document Rails 4.2!

Many of you have responded to the call for help to improve the 4.2 documentations over the last week. Thank you so much, please keep it coming! <3

This Week's Rails Contributors

This Week's Rails Contributors

So far, 34 contributors have helped improve Rails this week, 6 of them being first-time contributors. Welcome to the team!!! <3 <3 <3

New Stuff

`try` can now be used without a block argument

`try` can now be used without a block argument

Yet another way to try nil things in Rails 4.2.                                                                                                    

Fixed

Trying not to `try`

Trying not to `try`

While methods like try provides great convenience, they do come at a cost (as Aaron would say, allocations aren't free!) that adds up in when used in hot paths.

While the cost is usually outweighted by the convenience in application code, it's always good to measure all the things in order to make informed tradeoff decisions (learn how)!

Regression in 4.1.6 / 4.0.10 RC1 fixed

Regression in 4.1.6 / 4.0.10 RC1 fixed

With this fix, Rails should no longer uglify your queries on PostgreSQL. Assuming we don't find other regressions, you should expect another RC dropping soon™.

Logging with blocks

Logging with blocks

In case you missed it, this pull request pointed out that it is considered best practice to pass log messages using the block form when there are interpolated code in your log messages.

Wrapping up

And that's it for this issue of This week in Rails. As always, there are a lot more changes on Rails than what I can cover in this newsletter, so I encourage you to check them out yourself!

If you have any feedback for me, please feel free to email me or let me know on twitter! Thank you for reading! <3 <3 <3

P.S. Feel free to share this newsletter with your Rails friends!











Previous Issues

  • Sep 27

    Autumn is here, and so is Rails 7 Alpha 2! 🍂

  • Sep 17

    Rails 7 alpha released

  • Sep 11

    Bye-bye Byebug, Hello jsbundling and cssbundling!

  • Aug 28

    Remove default reliance on Sass and more!

  • Aug 21

    Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!

  • Aug 13

    ESM importmap and Marginalia

  • Aug 8

    Active Record goodies and more!

  • Jul 31

    Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!

  • Jul 23

    Active record improvements and much more

  • Jul 19

    Performance and parallel testing improvements and more!

Load More

© 2014-2025 This week in Rails.

Goodbits logo square wrapper Published on Goodbits