Hello,
I have an application where I am getting an odd error. If I do
redirect_to url I get a DoubleRenderError. If I change that
redirect_to url to a render :text => url. The action works fine.
Why would I receive this error just by changing the way rails is
responding?
The error is telling you that you are using redirect/render twice in the same action. Please post the controller code that is giving you the error so the group can better help you find the source of your error.
Why does it even call location when thats not even mentioned the
action being called?
I only get this error if i change authenticate to have redirect_to
Why does it even call location when thats not even mentioned the
action being called?
I only get this error if i change authenticate to have redirect_to
From the error message it appears you are calling authenticate from what is being rendered on a location call.
Why does it even call location when thats not even mentioned the
action being called?
I only get this error if i change authenticate to have redirect_to
Hit send before I meant to. It looks like, from the error message, that from your render action in location you are calling authenticate which then tries to redirect before the render from location is complete. This is a no no. It works when you switch it to render_to because that is a acting like a nested render which is ok. You might want to rethink how you want to do that authentication if you really need that redirect.