On Jan 27, 11:16 am, radu puspana <[email protected]> wrote:
> On Jan 26, 10:05 pm, Alpha Blue <[email protected]> wrote:
>
> > I've written a complete custom built gui search engine in C++, and I'm
> > also in the process of building a new GUI search engine for ruby.  In
> > order to understand google's references, you have to look at their API.
>
> >http://www.googleguide.com/advanced_operators.html
>
> > This will get you started.
>
> That is a great site Alpha, with the tutorial and all that, much
> appreciate it.Howwver i;m in a big hurry here...
>
> > In terms of answering your question the search would be:
>
> >http://www.google.com/search?hl=en&as_q=&as_epq=my+author

so how can i get the parameters my and author in there.
I;m using a link_to method, something like this <%= link_to "google
it", "http://www.google.com/search?hl=en&as_q=&as_epq=my+author"; %>

any  idea how to do this?

I also checked the CGI module on railsapi.com, and found something
like this

Module CGI::QueryExtension

    * actionpack/lib/action_controller/cgi_ext/query_extension.rb

Methods

I

        * initialize_query

Instance Public methods
initialize_query()

Neuter CGI parameter parsing.

Source: show | on GitHub

This is it? And how do i use it?
>
> > .. where search?hl=en (means english)
> > .. where &as_q= (means start a query output)
> > .. where &as_epq= (means find an author)
> > .. where my+author (would be first+last name)
>
> > It seems pretty simple but it's not.  You should make sure that you
> > enforce URI encoding standards when submitting your URLs.
>
> What does this mean " You should make sure that you enforce URI
> encoding standards when submitting your URL." ??
> Can you explain the problem in more detail or give me a link? Can I
> find the answer, to the URI encoding question, in the tutorial on the
> site u googleguides.com ?
>
> > I hope this helps you to get started.
>
> Many many thx,
> radu
>
> > Posted viahttp://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