Forum: Ruby on Rails problem popup

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Maite .. (Guest)
on 2008-11-26 12:11
hello list.

I use popup in my project

<td width="10"><%= link_to image_tag("edit.png"),
:popup =>['subjects',

I want that  update method finish this new window (popup) close and
refresh the father window

now I use javascript to close window

 <td><%= submit_tag "Aceptar" :onclick=>"window.close();" %></td>

but I want user render :update but this don´t run

I put this

def update
 render :update do |page|
     page << opener.$('contenerabajo')
     page << eval(window.close();)


any idea????
thanks for all
This topic is locked and can not be replied to.