rails 3 submit_to_remote

How do you do ajax functions like submit_to_remote or link_to_remote
to ajax update stuff on the page in rails 3?

anybody?