This week in Rails: Action Cable, collection caching and more


Hi This is Prathamesh bringing together all the latest happenings from the Rails world.

Action Cable alpha is out!

Action Cable is out in wild as promised by DHH in his Railsconf keynote. There is flurry of activity happening with it right now. It’s still in alpha mode and will get production ready with Rails 5.

This week’s Rails contributors

Meet the 21 lovely people who contributed to Rails this week, the community can’t thank you all enough!

New Stuff

Explicit collection caching directive

Now we can explicitly specify collection caching using a special directive # Template Collection. The partials which do not start with <% cache do %> calls will get benefitted by this feature.


Filter params based on parent keys

Do you have nested params with same child key and different parent keys? Do you want to filter the child keys for only some of the parent keys? Now you can! Params can be filtered based on parent key using a simple config.


Fix inconsistent behavior of HWIA with default_proc

Thanks to this fix, behavior of HWIA is now in sync with Ruby’s built-in Hash when a default_proc is set on the instance and it is duped.

That’s a wrap

That’s all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you’re scared of putting yourself out there? Don’t worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.