Last active
December 12, 2017 09:57
-
-
Save gtyanchev/2d228222414cfebed936ba4a3faabc84 to your computer and use it in GitHub Desktop.
Partial with yield
This file contains 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
<div> | |
yeeee I'm rendered | |
<p> | |
<%= yield :paragraph %> | |
</p> | |
<strong> | |
<%= yield :bold_text %> | |
</strong> | |
</div> |
This file contains 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
<%= render partial: 'simple_partial' do %> | |
<%= content_for :paragraph do %> | |
Partiaaaaaal wabadubdaaa | |
<% end %> | |
<%= content_for :bold_text do %> | |
I'm Boldemooooor | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment