The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Google Search For Rails

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Google Search For Rails Posted: Dec 31, 2004 1:32 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Google Search For Rails
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

Buncha great stuff comin out at Technoblog. Add a search box to your Rails site, simply by piping to Google’s SOAP endpoint.

 def search
   require 'soap/wsdlDriver'

   $KCODE = "UTF8" # in order to parse some of the odd characters
   key = 'yourGoogleKey'
   yoursite = 'yoursite.com'

   driver = SOAP::WSDLDriverFactory.new
    ("http://api.google.com/GoogleSearch.wsdl").createDriver
   @results = driver.doGoogleSearch(key,
    @params['q']+" site:#{yoursite}", 0, 10, true, " ", false, " ", " ", " ")
 end

Get your Google key here. (via del.icio.us)

Read: Google Search For Rails

Topic: Cream Of The Free-Tagged Previous Topic   Next Topic Topic: Ruby 1.8.2 Final Release

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use