Subscribe
Tutorial search

Ruby on Rails Layout Tutorials


Sort by:
Using Unobtrusive JavaScript and AJAX with Rails 3
Using Unobtrusive JavaScript and AJAX with Rails 3
UJS allows Rails-generated code to be much cleaner, helps separate your JavaScript logic from your HTML layouts, and uncouples Rails from the Prototype JavaScript library. In this tutorial, we’re going to look at these features and learn how to use them in a simple Rails 3 application.
Difficulty:
Looping Through Flash
Looping Through Flash
Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.
Difficulty:
Layouts and content_for
Layouts and content_for
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.
Difficulty:
All About Layouts
All About Layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.
Difficulty:
Search Term(s) (1): layout