Respond_to in rails

Posted by piemesons on Stack Overflow See other posts from Stack Overflow or by piemesons
Published on 2010-05-03T06:30:14Z Indexed on 2010/05/03 6:38 UTC
Read the original article Hit count: 206

Filed under:
|
|
|
respond_to do |format|
  format.html
  format.xml  { render :xml => @mah_blogz }
end

respond_to do |format|
      format.js
end

Whats this respond_to, format.html, format.xml and format.js. Whats the purpose, How they work.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about on