Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Action View > Layouts and Templates

10.1. Layouts and Templates

Rails has easy conventions for template usage, related to the location of templates with the Rails project directories.

The app/views directory contains subdirectories corresponding to the name of controllers in your application. Within each controller’s view subdirectory, you place a template named to match its corresponding action.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial