<div dir="ltr">Hi everyone,<div><br></div><div>A little while back, I emailed the list asking for advice about reskinning a Rails app. So far things are going well, but now I'd like to ask your advice about application layouts.</div><div><br></div><div>Formerly, a guest user could only visit the root path, otherwise they would be forced to log in via constraints in the application controller. I changed this to allow guests (potential customers) to view a few static pages I whipped up (About Us, Contact, Pricing, Etc.) I am calling this the "External" layout.</div><div><br></div><div>I have decided to have a different look for the inside of the app, which I am calling "Admin". My goal is to use this exact Pen, basically: <a href="http://jsfiddle.net/indream/hSu4c/">http://jsfiddle.net/indream/hSu4c/</a></div><div><br></div><div>The thing with that is, the page content renders in:</div><div><br></div><div><section class="main-section">Page Content</section> <a class="exit-off-canvas"></a><br></div><div><br></div><div>This causes me an issue because I obviously need that page content to be dynamic. I was hoping I could render than menu above the page content and call it using a partial but that does not seem to be the case. (If anyone knows how to do that that would work.</div><div><br></div><div>One option is, I could use this "Admin" layout as the primary application layout style, and just throw <%= yield %> there. That would have me change some things around, so I want to be thoughtful about the solution here. Measure twice and cut once, as the saying goes.</div><div><br></div><div>Any advice?</div><div><br></div><div>Thanks!</div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Jesse Waites</div><div><a href="http://JesseWaites.com" target="_blank">JesseWaites.com</a></div></div></div></div></div></div>
</div></div>