How to close a window when using EJS?

when using EJS,I have to write in the controller like this: … Render :update do |page| Page.xxxxx End … I want to know if there is a method “xxxxx” to close the current window,if not ,how can I close the current window with EJS? Thanks

Sorry…a mistake,I was saying “…close the current window without EJS”

Sorry...a mistake,I was saying ".....close the current window without EJS"

2009 年 8 16 日 9:41 AM在 "刘子嘉" <xxmikl.m...@gmail.com> 提到:

when using EJS,I have to write in the controller like this: ... Render :update do |page| Page.xxxxx End ..... I want to know if there is a method "xxxxx" to close the current window,if not ,how can I close the current window with EJS?

You can use << to execute arbitrary javascript.

Fred