Forum: Ruby on Rails confirming (via javascript) before save

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Felipe G. (Guest)
on 2009-01-11 16:07
(Received via mailing list)
Hello all,

I have the following scenario.
The user will input a name for the student to be added, since you can
duplicate names, the user will be the one in charge of checking if he is
adding the same student two times.
There are other fields that can be used in order to check it, but it has
be done manually.

The point is, when the user clicks on the submit button, I want to check
a user with the same name already exists and, if so, prompt a confirm
(javascript) to the user, so that he makes sure of what he is doing.

What is the best way to do it? Inside the create method of the

Thank youvery much


aka Felipe G.
fanglib homepage:
This topic is locked and can not be replied to.