So when one generates scaffodl, the controller automatically creates these blocks(?) like this
respond_to do |format|
format.html
format.xml { render :xml => @c }
end
what does this really do and how come it has format.html
and format.xml
? What does each do?