Closed pmichna closed 7 years ago
@pmichna will look into it. Would it be possible to you throw together a working PR of what you would like the fail reaction to redirect to?
@pmichna I am guessing the referrer is being set and picked up on the error over the success? Wondering if you could put a binding.pry or stop execution in general at the following line:
Do this for the fail step and let's see what referrer is being set to. You can just throw the result into this issue as a Gist or a markdown code block. Thanks! :+1:
Closing due to lack of activity/staleness.
I have a form for subscription like this:
routes.rb contain:
When I submit correct email address, I get redirected to the referrer and get proper flash[:notice] message. However, when I submit an incorrect email (like 'foo@') I get a "Missing template spree/chimpy/subscribers/new" error. Why doesn't it redirect just like in the case of sucess?
What's more, if I create the missing view template, it still isn't rendered for successful case - I just get redirected to the referrer with flash[:notice].