implementing google web search

Hi all, I m implementing a google search in my current project, where
the requirement is to implement the google based web search for the
site( same workingwithrails[dot]com site). I have searched many topics
but haven't got answers ..
pls reply if you know anything about this