How to close the window on def update?

hey all,
I have my usual update function like this:
def update
@document = Document.find(params[:id])
if @document.update_attributes(params[:document])
flash[:notice] = ‘Document was successfully updated.’
redirect_to :action => ‘show’
render :action => ‘edit’

I would like to change:
redirect_to :action => ‘show’
something “window.close()”

any idea?

Thanx in advance

for those who care, this is how I fixed it:
render :text => '’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs