Goodbits logo black in white circle

This week in Rails

Past issues
Jun 2 Jun 16

Jun 6 2014

Issue #13


Logo for This week in Rails

Issue #13

Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.

Featured

YAGNI methods are killing me

In his RailsConf keynote, Aaron Patterson talked about the some problems that comes with inheriting built-in classes. He eloborated on some of those details in this two-part blog post (part 2 here).

Rails Contributors - This week

This week's top contributors include @tenderlove, @senny and @rafaelfranca. Big thanks you to these 30 contributors who helped improve our framework this week. Hope to see you on the list next time! <3 <3 <3

New Stuff

Could not find generator 'migratiooons'. Maybe you meant 'migration'?

If you are like me, you make typos all the time. Don't worry, @schneems got your back. With this pull request, the Rails command line tools can now read your mind.

Related: check out the wikipedia article for the Levenshtein distance function if you want to understand how this feature works.

Active Record objects now support `pretty_print`

Isn't that pretty?

The 'to:' option for a route must contain a '#'

This is a bit of an accidental history, but the to option in the router used to support some bizarre combination of strings and symbols with wildly different semantics. These are now deprecated on master.

Fixed

Reverted deprecation of `*_filter`

As mentioned last week, the deprecation of *_filter methods in Action Controller are temporarily reverted to make it easier for gems maintainers. You should start migrating to *_action though, because the old methods will eventually be deprecated and removed.

Feature requests should not be filed on the issue tracker

If you would like to propose a new feature before working on it, you can discuss that with fellow contributors at the rubyonrails-core mailing list.

Fixes a memory leak in Strong Parameters

If you read Aaron's blog post, you should be glad that the memory leak he mentioned is now patched on master.

Drastically reduce object allocations

Along the lines of his second part of his blog post, Aaron managed to reduce some unnecessary allocation of ActiveSupport::SafeBuffer by over 67%.

Avoid misuse of underscore argument

Cool Ruby trick – as a convention, Rubyist uses an underscore to represent a method/block argument that you don't care about. Did you know that you can also use def some_method(*); ...; end to ignore all arguments passed to a method?

Fix BC year handling in postgres

If you are building a Rails application for archaeologists, you might be interested in this one. Currently there is a bug that causes these really old dates to be shifted by one when written to the database. Fortunately, @edogawaconan fixed this for us so all your dinasor models should have the correct age now.

By the way, did you know that 0 A.D. does not exists on our timeline? (It is a really awesome open-source video game though.)

R.I.P. rubyforge.org

Thank you for your great service in the past <3

Wrapping up

And that's it for this issue of This week in Rails. I say this every week, but this week there's an usually huge list of interesting things happening on Rails than I can cover here, so I encourage you to check them out!

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. If you liked what you read, please 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