method

button_to_remote

button_to_remote(name, options = {}, html_options = {})
public

Creates a button with an onclick event which calls a remote action via XMLHttpRequest The options for specifying the target with :url and defining callbacks is the same as link_to_remote.