respond_with

Trying to get a handle on the respond_with method. I have an action like this in my current rails 2

respond_to do |format |       format.html {render}       format.js { render :layout => false} end

how would I make this into a respond_with