Tuesday, 10 September 2013

Issue with Redirect not functioning in Rail 2

Issue with Redirect not functioning in Rail 2

I have this redirection in the middle of my controller so if something
isn't there, it will redirect you to a new area of the site if needed.
Here is the problem. It is just ignoring the redirect in the code. It
looks like this.
if conditions
redirect_to "/new/address"
end
I can't even figure out why it won't redirect, but I know it makes it into
the conditional and literally just ignores the redirect. What am I missing
here!?
I am using Rails 2 and Ruby 1.8

No comments:

Post a Comment