#ActionView
4. Are your views tested?

SimpleCov now measures ActionView templates. Add `cover_views` to your configuration to add ERB, Haml, and Slim templates to your report. The logic living in your templates stops being a blind spot.
September 4, 2026 at 9:57 PM
Tiny Rails papercut that kept bothering me:

Sometimes I want pluralize to pick "person" vs "people" without the count.

So I opened a PR for:

pluralize(2, "person", count: false) → "people"

Just me, or have you needed this too? 😅

github.com/rails/rails/...
[actionview]: Add count option to Action View pluralize helper by elalemanyo · Pull Request #58583 · rails/rails
Motivation / Background This Pull Request has been created because pluralize is sometimes useful in views only for selecting the singular or plural word, without rendering the numeric count. For ex...
github.com
August 26, 2026 at 10:27 AM
探索ReActionView:兼容ActionView的革命性ERB模板引擎

https://qian.cx/posts/4B256074-208F-4B00-93F2-A4FB818F6D0F
December 17, 2025 at 11:35 PM
Merged PR #4291: Include`DelegatorVoteView` as an `ActionView` with `Visible` and `Opaque` Variants

https://github.com/penumbra-zone/penumbra/pull/4291
May 9, 2024 at 7:37 PM
Merged PR #4295: auction: add views to the `ActionView` definition

https://github.com/penumbra-zone/penumbra/pull/4295
May 1, 2024 at 5:22 PM
ActionView-compatible ERB engine with modern DX
December 2, 2025 at 6:54 PM
Well folks,

@marcoroth dropped a new #herb release on #rucoco and he packed some really nice goodies in it.
Don't claim later that nobody told you 😉

https://ruby.social/@marcoroth/116223917202960418

#ruby #rails #rubyonrails #ActionView #reactionview […]

[Original post on ruby.social]
March 14, 2026 at 2:20 AM
Some folks didn't have the chance to learn about @marcoroth's amazing 🌿 #herb.
Luckily he got the chance to speak about the revolution in the #rails view ecosystem at @Euruko in 🇵🇹 #vianadocastelo.

#euruko #euruko2025 #rubyonrails #rubyprogramming #reactionview #ActionView
September 18, 2025 at 10:17 AM
I'm so proud of the work that @marcoroth is doing to improve @rails tooling.

His work is highly appreciated by #rails users like me.

#rubyonrails #erb #herb #ror #ActionView
September 5, 2025 at 1:21 PM
It’s fixed! 🥳
Now the #rails error reporter will report the same issue in production and development for errors in ActionView templates

https://github.com/rails/rails/pull/53979
December 18, 2024 at 12:55 PM
I understand why it happens now.
I just don't understand why #Rails does that 🤔

Is this on purpose or should both environments report the same error when an error occurs in a view?
Either ActionView::Template::Error or the unwrapped NoMethodError
November 29, 2024 at 3:30 PM
Debugging an issue where Rails reports different errors from views in production and development to Rails.error subscribers. In dev it reports ActionView::Template::Error and in prod it reports the unwrapped error cause, e.g. NoMethodError.

Narrowed it down to here so far github.com/rails/rails/...
rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb at d0dcb8fa6073a0c4d42600c15e82e3bb386b27d3 · rails/rails
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
github.com
November 29, 2024 at 3:08 PM
Such a brilliant, interesting and well designed write up. marcoroth.dev/posts/rails-...
Introducing ReActionView: A new ActionView-Compatible ERB Engine and initiative for the Rails view layer
Marco Roth - marcoroth.dev
marcoroth.dev
September 11, 2025 at 7:21 PM
As of phlex-rails 2.1, ViewComponent, ActionView and Phlex all share an output buffer so the cost of switching back and forth during a render —even thousands of times— is very low too.
May 12, 2025 at 8:55 AM
The release candidate for Phlex-Rails 2.1 is out. I’d appreciate if you could test it if you use Phlex from ERB in Rails and especially if you use the form helper adapters. There are significant changes to the implementation of the Rails interop. github.com/phlex-ruby/p...
Release 2.1.0.rc1 · phlex-ruby/phlex-rails
Summary This is the first release candidate for v2.1 which uses a completely different architecture for interoperating with ERB templates from ActionView and ViewComponent. It does this by sharing ...
github.com
March 1, 2025 at 11:48 AM
Somehow one of the ActionView helpers is overriding the capture method on the component so when Phlex calls capture, it doesn’t work.
February 3, 2025 at 11:49 PM
ActionView is strapped! Not sure if Phlex can compete with this.
December 23, 2024 at 11:27 AM
🎉 ViewComponent 4.0.0 is here!

After 2 years since v3 🚀

✨ Key highlights:

Removes ActionView::Base dependency

Requires Rails 7.1+ & Ruby 3.2+

New SystemSpecHelpers for RSpec

around_render lifecycle method

Reached feature maturity

#rails #ViewComponent #ruby #webdev […]
Original post on ruby.social
ruby.social
July 30, 2025 at 10:48 AM
looks like `ActionView::Helpers::AssetTagHelper#video_tag` still doesn't support setting tracks, so I guess if you're using Rails, you gotta write the HTML yourself if you want subtitles on a video. 😩
July 2, 2025 at 11:08 PM
Marco Roth 🇨🇭
Introducing ReActionView: A New ActionView-Compatible ERB Engine
After RubyKaigi, he’s back — this time with reactivity-first Rails rendering.
#Euruko2025 #Hotwire #RubyOnRails
June 19, 2025 at 7:02 PM
It's all: "undefined local variable or method `question' for #<ActionView::Base:0x32906dc>" and I'm all: "I didn't do it."
November 13, 2024 at 12:39 AM
@marcoroth.dev gave such a great speech on the future of ActionView, I think we need people like him with a bold vision of the future;
September 6, 2025 at 3:38 PM
The pull request is now out.

Thank you all for your comments and encouragement. Let's see how it goes from here.

github.com/rails/rails/...
Tag helper buffer for nested elements with multiple children by naofumi · Pull Request #54042 · rails/rails
Motivation / Background This Pull Request adds a buffer to the content block in ActionView::Helpers::TagHelper#tag. This allows us to easily generate HTML for nested elements with multiple children...
github.com
December 24, 2024 at 6:48 AM