DEV Community

Discussion on: Rails ViewComponent helper

Collapse
 
muriloime profile image
Murilo Vasconcelos

Hello @scottbarrow , Great article, although I dont think the rails bytes code works when passing blocks. However, the article's code render component_class_for(name).new(args), &block does the trick .
cheers