I'm trying to have some architecture in place for testing some hidden features (i.e. ab testing without the user interaction).
I though about using a parameter to select a specific view if it exists but fall back to the original otherwise.
This probably will work best if it also affects partials.
The idea is to route something like:
.../mycontroller/myview?hf=extra
to views/mycontroller/myview.hf_extra.html.erb
if exists, otherwise views/mycontroller/myview.html.erb
.
The same for all partials too.
This looks like defining an extra template handler,right? Does this make sense or should I attempt some different?