# Follow\_redirect!() doesn't exist?

**URL:** <https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485>\
**Category:** Rails\
**Created:** [November 28, 2007, 11:59am UTC](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485 "2007-11-28T11:59:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 28, 2007, 11:59am UTC](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485/1 "2007-11-28T11:59:08Z")

</div>

Hi all

I want to do some functional testing. I stumbled over the method  
follow\_redirect!() somewhere, but evidently this doesn’t seem to exist  
in my Rails version (1.2.5 or so)?! Then I tried follow\_redirect()  
(without the exclamation mark), and I get the following error:

TypeError: can’t convert Symbol into String

What am I doing wrong? Thanks for help 🙂  
Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 28, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485/2 "2007-11-28T12:02:56Z")

</div>

On 28 Nov 2007, at 10:59, Joshua M. wrote:

> Hi all
> 
> I want to do some functional testing. I stumbled over the method  
> follow\_redirect!() somewhere, but evidently this doesn’t seem to exist  
> in my Rails version (1.2.5 or so)?! Then I tried follow\_redirect()  
> (without the exclamation mark), and I get the following error:

Are you doing a functional test or an integration test. IIRC  
follow\_redirect is only for the latter (since functional tests revolve  
around a single request).

Fred

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 28, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485/3 "2007-11-28T12:06:30Z")

</div>

> > I want to do some functional testing.

😉
