Am I missing something or is this page laughably incomplete: #rubyonrails
The very first parameter, a string, is the text of the link which appears on the page. The second parameter, the options hash is the most interesting part as it has the AJAX specific stuff: :url This is the only parameter that is always required to generate the simplest remote link (technically speaking, it is not required, you can pass an empty options hash to link_to_remote – but in this case the URL used for the POST request will be equal to your current URL which is probably not your intention). This URL points to your AJAX action handler. The URL is typically specified by Rails REST view helpers, but you can use the url_for format too. :update Specifying a DOM id of the element we would like to update. The above example demonstrates the simplest way of accomplishing this – however, we are in trouble if the server responds with an error message because that will be inj...