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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Aug 11, 2010 at 06:03, Pale Horse <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 * * * * * WATCH THIS SPACE * * * * * | Ruby: http://mars.groupsite.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dave Aronson wrote:> On Wed, Aug 11, 2010 at 06:03, Pale Horse <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 > * * * * * WATCH THIS SPACE * * * * * | Ruby: http://mars.groupsite.comSurely if that were true, it''d error when I pass in the ''show'' action into the URL? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Pale Horse wrote:> Dave Aronson wrote: >> On Wed, Aug 11, 2010 at 06:03, Pale Horse <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Aug 11, 6:03 am, Pale Horse <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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> If there''s any code you need, please ask. However, I assume someone has > encountered this before. > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.