Test this out in IRB so you can see what happens:

irb
require 'cgi'
puts CGI.escape( "J.R.R. Tolkien" )
puts CGI.escape( "Jack Daniels" )

You can create a simple helper file that does the formatting for you and 
then use a simple link_tag method to submit the link to google with the 
helper.

If you don't understand what I'm saying here then you are not ready to 
do this type of event in rails.  You should read up on the very basics 
for using rails at http://guides.rubyonrails.org/.

Take care,

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