Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<li class="result-block <%= result[:type] %>">
<div class="subject">
<%= yield :subject %>
</div>
<div class="snippet">
<%= yield :snippet %>
</div>
</li>
<% content_for :subject do %>
<strong>Hello World</strong>
<% end %>
<% content_for :snippet do %>
<em>Testing partials</em>
<% end %>
<%= render :partial => "custom_block", :layout => "block_layout" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment