method
follow_redirect!
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
follow_redirect!()
public
Follow a single redirect response. If the last response was not a redirect, an exception will be raised. Otherwise, the redirect is performed on the location header.
Register or
log in
to add new notes.
virusswb -
December 5, 2012 - (v3.2.8)
![Default_avatar_30](https://www.gravatar.com/avatar/d62d782bd0ed42394797cff8a9adae70?default=http://apidock.com/images/default_avatar_30.png&size=30)
0 thanks
you will be redirect to signin, when you want to create post before signin
code
def test_should_signin_first_before_add_post get "/admin/posts/new" follow_redirect! end