Created
February 7, 2013 17:47
-
-
Save Zelnox/4732717 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Somewhere in your layouts/application.html.erb | |
<%= content_for?(:content) ? yield(:content) : yield %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% content_for :content do -%> | |
<%= content_for?(:dashboard_content) ? yield(:dashboard_content) : yield -%> | |
<% end -%> | |
<%= render :template => "layouts/application" %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View that uses the dashboard layout would define | |
<% content_for :dashboard_content do -%> | |
Ponies! | |
<% end -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment