Then you can use 'net/http' to send a regular http request, like so:
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&fp=c26c79a56c95bda8")
response = http.request(req)
end
#do something with response
This can of course be put in the controller, but also the model if that
suits you better.
--
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.