I was wondering if it’s possible to just use
Failure() in a Rails view and if so how to mix those modules in. Simply doing
include Dry::Monads[:result] in the controller works for the code inside controller actions, but doesn’t seem to cascade in any way to the views. I’m getting a
NameError - uninitialized constant #<Class:0x00007f46c356cac8>::Failure:
failure if I do that.