for those who care, this is how I fixed it:
render :text => ''<script
type="text/javascript">window.close(); </script>''
On 5/13/06, Patrick Aljord <patcito@gmail.com>
wrote:> 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''
> else
> render :action => ''edit''
> end
> end
>
> I would like to change:
> redirect_to :action => ''show''
> with:
> something "window.close()"
>
> any idea?
>
> Thanx in advance
>