I was just providing an example of how queries are formed.  Here's a 
quick and dirty test for you for the author find:

def find_author(author)
  require 'cgi'
  cgi_author = CGI.escape(author)
  q_author = cgi_author.gsub(/\+/, '+author:') + ' '
  query = "http://www.google.com/groups?q=author:"; + q_author
  link_to(author, query)
end

then call that using <%= find_author("Author Name") %> in your views.

Note that if you searched for author in the api you'll see that it only 
uses author in google groups and the format is generally 
author:first+author:middle+author:last etc... in the query output.

In your example, since all you need is an author, you just need to make 
sure that the string for author is escaped correctly, not the entire 
URL.

But, this should get you started.


-- 
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