thoughtbot / superglue

A productive library for Classic Rails, React and Redux
https://thoughtbot.github.io/superglue/
MIT License
365 stars 10 forks source link

Use form_props active_template_virtual_path #39

Closed jho406 closed 9 months ago

jho406 commented 9 months ago

This reverts an earlier removal of of the method virtual_path_of_template. Unfortunately, a combination of controller_path and action_name caused some unintended consequences of some actions rendering the wrong template.

Using controller_path and action_name would've been a nice way to DRY things up, but we're going to revert for now until we find a better method.