Syntax for link_to with block in rails3 with :remote=>true and including :class and :id
For the love of god, I've been banging my head on this for hours. Using rails3 rc, 1.9.2. I'm trying to create a link_to that submits an ajax request, with parameters, a class and id, and needs a block so I can insert a span tag around the name. Documentation is of absolutely zero help, as are numerous google searches. Here's what I've got so far: <%= link_to( :url=>{ :controller => 'themes', :action => 'remove_tag', :entity_id => entity_id, :theme_id => theme_id, :entity => entity, :element_id => element_id, :parent_id=>parent_id }, :remote => true, :id => "theme-tag-#{entity}-#{entity_id}",