Jeffrey L. Taylor wrote: > Quoting Michael Murillo <[email protected]>: > <%= link_to_function truncate(article.title, 60), > "clickThru('#{article.url}','#{article[:id]}', 'click')", > :title => article.feed.title, :href => article[:id] %> > > > function clickThru(url, id, verb) { > new Ajax.Request('/articles/'+id+'/'+verb, > {asynchronous:true, evalScripts:true, method:'get'}); > window.open(url); > }
Thank you Jeffrey. I played around with it a bit and was wondering how the function intends to post to the clicks database. Is it by using that "id" => "click"? Or does "click" in your example refer to a method in a controller? Thanks again Jeffrey. -- 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.

