Forum: Ruby on Rails Validation

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.
David M (Guest)
on 2006-06-13 15:02
(Received via mailing list)
In my controller, I have a function defined which performs authorization
on a credit card.  It will return either "Success" or "Failure"
on the results.

In my form, I would like to have the submit button cause the check to be
performed and the page would sit there while it was processing.  After
processing, on a "Success", it would forward on to the confirmation page
and on a "Failure", it would display an error message in a div.

I have used observe_field before to call methods in a controller to
availability of a login name, but I'm not sure how I would do what I
described above.  Any help out there?

This topic is locked and can not be replied to.