I used a quick workaround. Replace the redirect_to with: render :text => "<html><body><script type='text/javascript' charset='utf-8'>window.parent.document.location.href = '/myloc';</ script></body></html>"
On May 7, 11:51 am, nextpulse <[email protected]> wrote: > thanks. > Seems like I may have to render some JS in the controller to call the > parent. > > On May 7, 11:46 am, Frederick Cheung <[email protected]> > wrote: > > > On May 7, 7:43 pm, nextpulse <[email protected]> wrote: > > > > Inside an iframe, I want the controller to redirect_to to the parent > > > (i.e. target ='_parent'). > > > Any ideas? > > > (Everything I've tried- via redirect_to - just keeps it inside the > > > iframe) > > > i don't think you can do this server side - you need to set the right > > target attribute etc on the link and so on. > > > Fred --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

