I'm accessing a log in scheme from a web service and I want to be able
to check the returned values in order provide some form of validation
and error checking.
For example, when I submit the log in request, the service returns an
XML String something like the following…
<?xml version="1.0" encoding="utf-16"?>
I'd like to be able to display the value [text] of Message as well as
re-direct users if Success is "false" for example…
#get the value of Code and test
if @code = 'False'
flash[:notice] = "Something failed..."
redirect_to :action => "index"
@message = 'Welecome'