Skip to main content

Views Episodes

Views are where the response HTML, JSON, XML or other formats are generated to send back to the client in your Rails application. It takes the data from the controller and transforms it into something the client can understand. Often times you'll return HTML for browsers, JSON or XML for APIs, and sometimes other formats like PDFs and CSVs for downloads.