Link_to_remote with anchor

Anybody no how to set the anchor on link_to_remote?

Thanks,
-dustin

Anybody no how to set the anchor on link_to_remote?

My instinct says this isn’t possible, but you might look at an
:after_finish (or whatever it’s called) along with javascript scrolling
to
scroll to the position you want shown…

You mean the actual href attribute, right? Docs say this:

link_to_remote(name, options = {}, html_options = {})

So I would assume something like this:

<%= link_to_remote(“Delete this post”, :url => { :controller => “post”
:action => “destroy”, :id => post.id }, { :href =>
“/post/destroy/#{post.id}” }) %>