Displaying 2 results from an estimated 2 matches for "help_docu".
2011 May 21
2
How do you create a sub-layout or a partial that wraps a lot of custom html?
Basically I''d like to create a layout inside of a layout using erb.
Something like this:
<%= render :partial => ''support'' do %>
<div id="helpDocumentView">
<h3><%= @help_document.question %></h3>
<%= @help_document.content %>
<div id="helpDocumentHelpful" data-help-document-id="<%=
@help_document.id %>">
<b>Was this information helpful?</b>
<a href="#">Yes</a> or...
2011 May 26
8
Is there a way I can create a sub-layout with ERB?
I have 2 pages that have almost the same content except for stuff in
the middle. I''d basically like to have a sub-layout that wraps the
content that is different - exactly the way a normal layout file
would.
How can I call into a layout inside of erb? I''d like to do something
like this:
<%= render :sub-layout => "reusable-wrapper" %>