I have been struggling with rails double render errors for a few weeks now (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at mos ....etc...).
I figured out that if i have a statement like this:
redirect_to action_name and return
I get the double render error. However, when i specify a route called action_name_path, and do a statement like this:
redirect_to action_name_path
I don't get the double render error anymore. Why is that?