button to remote

Is there a tag that is a button but acts as link_to_remote?

Check out submit_to_remote: http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html#M000532

Grtz Gert

It seems that submit_to_remote should be appear only in a form. But I like to put the buttons anywhere.

I didn't see an exact solution for your problem in the docs, but you could start with button_to_function[1]

1: http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M000631