erb templates

Hi,

I’ve just been looking on track and came across a patch talking about .erb templates. The following snippet is given.

respond_to do |format|
  format.html # show.html.erb
  format.js
# show.js.rjs
end

Can anyone point me in the direction of some information for what / how please?

Thankyou
Daniel