replace link_to_remote bu button_to_function

I believe you want

submit_to_remote

Which works just like link_to_remote.

submit_to_remote(name, value, options = {})

Returns a button input tag that will submit form using XMLHttpRequest in the background instead of regular reloading POST arrangement. options argument is the same as in [ form_remote_tag](http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000535).