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”

2009 å¹´ 8 16 æ—¥ 9:41 AM在 “刘子嘉” [email protected] 提到:

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

On Aug 16, 2:43 am, Áõ×ӼΠ[email protected] wrote:

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