Use Turbo Frame Tag in ViewComponent

--

Photo by James Harrison on Unsplash

You can see this error:

undefined method `turbo_frame_tag'

when trying to use turbo_frame_tag inside of your ViewComponent.

To solve this, add a helper to your ApplicationComponent:

And inherit from ApplicationComponent.

--

--

Viacheslav Kharchenko
Viacheslav Kharchenko

Written by Viacheslav Kharchenko

Ruby Developer & Python Team Lead from 🇺🇦Ukraine

No responses yet