# Redirect has no effect ? or How to make a reload?

**URL:** <https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676>\
**Category:** Rails\
**Created:** [October 4, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676 "2009-10-04T21:16:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [October 4, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676/1 "2009-10-04T21:16:47Z")

</div>

I have a form for creating an object in a pop up window. When the new  
object has been submitted, I need to update the parent window, the one  
that created the pop up window.

I do it by a redirect to the action that created the parent window.  
This is done in the action create (that is used to create the new  
object)

… if @research\_notation.save  
redirect\_to :action =\> :show, :controller  
=\> :person\_cards, :id=\>Person.current.id

However, nothing happens, according to a debug print of the new  
variable, although the log writes out the redirect as  
Redirected to [http://localhost:3000/person\_cards/214](http://localhost:3000/person_cards/214)  
When I manually use the browsers relaod function everything works as  
expected

Maybe I have misunderstand the direct command. My understanding was  
that a redirect to :action ‘show’ is the same as calling the action or  
method ‘show’

Or what dows redirect mean?  
Is thre any other ways to solve my problem of trying to reload the  
parent window

Any help would be very much appreciated

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [October 5, 2009, 6:48am UTC](https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676/2 "2009-10-05T06:48:05Z")

</div>

modify the location/href attribute of the parent using javascript
