Hello everyone!

Prathamesh and Greg here, bringing you all the latest from This Week in Rails…..

Which is actually “Past 2 weeks in Rails” because we missed to send last week’s issue due to illness. But we are back now, so let’s see what happened in the Rails world since the last issue.

Featured

The past 2 weeks 38 awesome people contributed to Rails. Want to be part of the show? Head to the issues list and make a contribution!

The Rails javascript helpers has been rewritten in a new gem called rails-ujs and they use vanilla javascript, so jQuery is not a dependency of Rails anymore.

The first release candidate for 5.0.1 has been released and if no issues found, the final will be release on the 6th of December.

Improved

The form_for and form_tag helpers serve a very similar use-case so they been unified with the new form_with helper.

A default for the cast_type option of the attribute method has been added to enable calling this method with just the attribute name.

Active Record distributed the connection to previously blocked threads on when it cleared the reloadable connections, but with this change the same happens on disconnect too.

With this change, Active Record uses the recommended UUID function depending on the underlying PostgreSQL server’s version, while maintaining uuid_generate_v4() in older migrations.

New

yarn, the javascript package manager is supported in Rails now! You can pass the –yarn option when you generate a new rails app and Rails will create the necessary config files and run yarn install after bundle install automatically.

This patch introduced _Model#reload_ _ to bring back force reloading of the association reader.

Fixed

These batch methods didn’t use the left outer joins before, but with this fix they behave properly now.

This PR fixes a bug with the force ssl redirection when the session_store is disabled.

Wrapping up

That’s it from This Week in Rails! There were many other great contributions, too numerous to list here, but feel free to check them out!

Until next week!