Gotcha!  Perfect.  Thank you Jeffrey.

I got it to work with the following.

In my view:

<%= link_to_function truncate(link.name, 60),
"clickThru('#{link.link}','#{link[:id]}', 'votes')",
:title => link.name, :href => link.link %>

In my application.js

function clickThru(url, id, verb) {
  new Ajax.Request('/links/'+id+'/'+verb,
        {asynchronous:true, evalScripts:true, method:'post'});
  window.open(url);
}

Thank you so much!  This was awesome and your advise came at the end of 
maybe 5 hours of internet searching.
-- 
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