Hi:
I’ve created a popup I’m desperately trying to close. It’s just not
working. I’ve got a simple form_for with a submit tag. I put in an
onclick method and that’s not doing it. Can anyone help?
Here’s the submit_tag:
<%= submit_tag “Send!”, :onclick => “javascript: window.close();” %>
When I do this, the submit method fires and my DB is updated fine, but
the close never happens.
Then, after the db insert, I get a message:
Missing template ./script/…/config/…/app/views/tasks/create.rhtml
Can anyone explain what’s going on?
Thanks so much in advance!
Mike