Forum: Ruby on Rails Validation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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"
depending
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
the
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
check
availability of a login name, but I'm not sure how I would do what I
described above.  Any help out there?

Thanks,
David
This topic is locked and can not be replied to.