You need to send a http request in the controller action and use that 
info to redirect the user.


require 'net/http'

connection = Net::HTTP.new("www.google.com")
response = ""
connection.start do |http|
  req = 
Net::HTTP::Get.new("/#hl=en&source=hp&q=ruby+on+rails&aq=f&aqi=g10&oq=&fp=c26c79a56c95bda8")
  response = http.request(req)
end

if(response == "true")
  redirect_to(:action => 'success')
else
  redirct_to(:action => 'failure)
end
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to