Goodbits logo black in white circle

This week in Rails

Past issues
Apr 19 May 4

Apr 27 2014

Issue #7


Logo for This week in Rails

Issue #7

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

This week is super-ultra-special in Railsland, because it considers the annual RailsConf that just happened in Chicago. I was really fortunate to be able to go this year, so I'll try my best to bring some highlight from the conference to all my lovely readers. (Thank you for everyone who said hi, it was really nice meeting you all!)

Featured


TDD is dead. Long live testing.

DHH pronounced the death of TDD on stage at Railsconf, and this is a follow-up blog post to his keynote. I encourage you to catch the full keynote and blogpost to try and understand his argument behind the controversial soundbite.

Adequate Record merged into master

Along with the usual dosage of puns and trolling, Aaron Patterson presented what he has been working on for the last few years – an epic refactoring of Active Record to support cached prepared statements. Check out his previous blog post on the same topic as welll.

(Note: The commit I linked simply realigned master with the adequaterecord branch. See here for a better diff of the actual changes.)

This week's top contributors

This week's #1 contributor is once again, @rafaelfranca. (Rafael was recognized as one of the 2014 Ruby Heroes at RailsConf for his contributions to Rails!) Please join me in thanking all these awesome people who dedicated their time (even during RailsConf!) to help improve the framework we love <3 <3 <3

This Week in Rails: the Backstory

The story behind this newsletter you are reading.

Fixed


Make URL escaping more consistent

Assorted bug fixes for URL escaping. If you have a monkey-patch or workaround in your app for these cases, you will be able to remove them in Rails 4.2, yay!

Optimize URI escaping

A small refactoring to speed up URI escaping, backed by hard numbers – science™! (Contrary to what some popular urban myth might lead you to believe, the Rails core team cares deeply about performance, as you can see here.)

Migration of legacy cookies

This fixed an obscure that is triggered with the combination of setting the cookie jar format to :hybrid (a new feature in 4.1) and upgrading to secret_key_base (from secret_token) at the same time. You should hold off on doing either one of these upgrades until 4.1.1 comes out.

When Ruby/Rails API methods conflict

An odd case where Array and Active Record both defines a method called select!. (Note: select! is a private API that you should not use in your applications, see my explanation in a related issue for details.)

Removing mutable states in `String#pluralize`

This pull-request makes the pluralize method consistently return a new copy of the string.

`image/x-icon`

An interesting piece of history behind the favicon MIME type.

"This is one more reason not to work from a coffee shop"

Now that Rails is no longer opinionated about whether working at coffee shops is a bad idea, we will need a new platform to reopen that debate.

One More Thing™


Got a super old mac? Help test an ancient bug!

If you have access to a mac running a very early version of safari (3.0 or lower), please help me reproduce this super ancient bug!

Wrapping Up


And that's it for this issue of This week in Rails. As always, there are a lot more 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