Post

Today is a big day for Herb! It's built into Rails 8.2 by default for all HTML+ERB views. My talk at #RailsWorld in Austin today answered three questions: What is Herb? What ships in Rails 8.2? And what does this enable? Herb v0.11 and ReActionView v0.6 released alongside it.

The answer to "what does this enable?" is ReActionView v0.6, which introduces LiveView-like, fine-grained reactivity for Rails.

You declare state in your view like strict locals, read it in plain Ruby, and write it from HTML attributes. Updates happen at the slot level, so only the changed values are updated. No JavaScript framework and no new file format needed.