Last active
December 17, 2017 04:49
-
-
Save ziyan-junaideen/e152bf206d51bebcdad5505e9e549bf4 to your computer and use it in GitHub Desktop.
`yield` in partial not yielding block given.
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
.tabbable.tabs-left | |
= render 'dashboard/shared/notifications/sidebar' | |
.tab-content | |
.tab-pane.active | |
.portlet | |
.portlet-title | |
.caption= title | |
.portlet-body= 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
= render 'dashboard/shared/notifications/template', locals: { title: 'API Keys' } do | |
%p Some HAML code | |
/ This page renders only the title from the partial and not the block given | |
/ In other words the rendered page just has 'API Keys' and not 'Some HAML code' | |
/ Application details | |
/ Rails 3 | |
/ Haml 4 | |
/ HAML Rails 0.4 | |
/ I normally use Slim and have done similar before. Will be greatful if you can stpo the error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment