Friday, November 2, 2018

Webpacker, Action Text, Multiple database improvements, and more

Posted by dodecadaniel

Boo! It’s Daniel here, bringing you news about Rails for October. 🎃

Make Webpacker the default JavaScript compiler for Rails 6

Less than two years ago Rails introduced the Webpacker gem, making it easy to manage JavaScript with webpack. We started October strong by merging a whole bunch of commits by a number of people to make Webpacker the default for Rails 6.

Introducing Action Text

Combining the powers of Active Storage, Webpacker, and Trix, Action Text brings rich text content and editing to Rails. Check it out!

Improvements for multiple databases

In part 4 of the series, Eileen adds connects_to and connected_to. Stay tuned for the next episode!
We also got multi-db support for db:migrate:status. I like the approach of making the change easy, then making the change.

Support default expression and expression indexes for MySQL

With the release of MySQL 8.0.13, we can now support functions and expressions as default values, and functional key parts that index expression values rather than column or column prefix values.

Add guides section on verbose query logs

Why spend time tracking down which line of your code is triggering a database query when Active Record can just tell you? Well you might do just that if you don’t know about the verbose_query_logs option. Luckily we now have a section in our guides describing the option in detail.

Document deep_interpolation parameter for bulk lookups

This is a fun option I didn’t know existed. There is something mildly foreboding about the name deep_interpolation, I think. Anyway, our I18n guide now documents it.

Show allocations for template and partial rendering

_Completed 200 OK in 858ms (Views: 848.4ms ActiveRecord: 0.4ms _ Allocations: 1539564 ) 🙂

Fix autoloading issue with Active Storage

This brave soul wandered into dependencies.rb and made it to the other side. Bravo!

Preparing Rails for winter

As the weather gets colder here in New York, I am glad I don’t need to be reminded of how freezing I am whenever I look through the Rails codebase.

77 people contributed to Rails since our last issue. There are also 77 partitions for the number 12. Spooky coincidence? I think so.

Check out the full list of changes.  If you are interested in contributing, we have plenty of open issues. I hope to see your name on the list next week!