Question closing page after action

Hi all,

does anyone know of a rails command i can use so that at the end of an
action, the page will close at termination? (i.e it would be the
equivalent of a javascript and would
look something like this

def create
@contact =[:contact])
:action => :closewindow ## or something like this? ##
render_text ‘you have failed…’

thanks in advance,


You could use RJS to update an element with the enclosed javascript.
The browser should execute the javascript (I’ve done this with
redirection on remote forms on

  • Derek

On 6/23/06, shai [email protected] wrote:

:action => :closewindow     ## or something like this? ##

Posted via

Rails mailing list
[email protected]

Derek H.
HighGroove Studios -
San Mateo, CA | Atlanta, GA
Keeping it Simple.

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