Topic: Clickable div or td with remote=>true

I have a table in my view and I'd like to make a td (or div) clickable.  However, since the link has to be remote => true, I can't find a way to get it to work.  I tried using url_for but I saw it doesn't work for remote => true.

I also tried using onclick="window.location.href = '???'" but I need it to be remote...

The link I need :

 link_to "", {:controller => "top10", :category => params[:category],  :id => b.id}, :remote => true 

Thanks !

Re: Clickable div or td with remote=>true

There is a helper in rails called link_to_remote for using with the remote => "true"

Here's a rails guide on it, though it doesn't look complete? http://guides.rubyonrails.org/ajax_on_rails.html

Change is a vector. You can have all the change in the world, but if it doesn't go in the right direction, what good is it? | techonamission.com