Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Last active December 17, 2017 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziyan-junaideen/e152bf206d51bebcdad5505e9e549bf4 to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/e152bf206d51bebcdad5505e9e549bf4 to your computer and use it in GitHub Desktop.
`yield` in partial not yielding block given.
.tabbable.tabs-left
= render 'dashboard/shared/notifications/sidebar'
.tab-content
.tab-pane.active
.portlet
.portlet-title
.caption= title
.portlet-body= yield
= 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