Redirect loop

I have one record in a database that is encountering a redirect loop.

When I point my browser to “www.sitenamehere.co.uk/case_studies/1”, it
displays a redirect loop error message.

When I point my browser to “www.sitenamehere.co.uk/case_studies/2”, it
does not.

Now, when I point my browser to
www.sitenamehere.co.uk/case_studies/show/1”, no error occurs and the
page is displayed exactly as it should.

Also, when I point my browser to
www.sitenamehere.co.uk/case_studies/show/2”, no error occurs and the
page is displayed exactly as it should.

What is the problem here? My routes are set up correctly when I review
the output of rake routes.

If there’s any code you need, please ask. However, I assume someone has
encountered this before.

On Wed, Aug 11, 2010 at 06:03, Pale H. [email protected] wrote:

I have one record in a database that is encountering a redirect loop.

So what’s different about that record? I’d bet it includes or
references some resource that’s the problem.

-Dave


Specialization is for insects. -RAH | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog: http://dare2xl.com | Play: http://davearonson.net

Dave A. wrote:

On Wed, Aug 11, 2010 at 06:03, Pale H. [email protected] wrote:

I have one record in a database that is encountering a redirect loop.

So what’s different about that record? I’d bet it includes or
references some resource that’s the problem.

-Dave


Specialization is for insects. -RAH �| Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog: �http://dare2xl.com | Play: http://davearonson.net

Surely if that were true, it’d error when I pass in the ‘show’ action
into the URL?

On Aug 11, 6:03 am, Pale H. [email protected] wrote:

What is the problem here? My routes are set up correctly when I review
the output of rake routes.

Look at your log files to see where the browser is being redirected &
by what bit of your code

Fred

Pale H. wrote:

Dave A. wrote:

On Wed, Aug 11, 2010 at 06:03, Pale H. [email protected] wrote:

I have one record in a database that is encountering a redirect loop.

So what’s different about that record? I’d bet it includes or
references some resource that’s the problem.

-Dave


[…]

Surely if that were true, it’d error when I pass in the ‘show’ action
into the URL?

That depends on how your routes are set up.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]