A view defines the user interface, which can be simple HTML or can also have dynamic content. Rails uses templates to generate dynamic content. There are three types of dynamic-content templates: rhtml includes Ruby code with the html, rxml uses Ruby code to construct XML, and rjs supports JavaScript. 3rdRail provides specific wizards and editors for these file types.
A layout is a template defining the standard page elements used by a view.
Use the following steps to create a new RHTML file using the RHTML Wizard.
Open the RHTML File Wizard: