[LRUG] [Request] Rails 3.2 Layout Advice
Jesse Waites
jesse.waites at gmail.com
Tue Apr 5 09:35:07 PDT 2016
Sorted it; Thanks anyway.
On Tue, Apr 5, 2016 at 11:33 AM, Jesse Waites <jesse.waites at gmail.com>
wrote:
> Hi everyone,
>
> 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.
>
> 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.
>
> 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:
> http://jsfiddle.net/indream/hSu4c/
>
> The thing with that is, the page content renders in:
>
> <section class="main-section">Page Content</section> <a
> class="exit-off-canvas"></a>
>
> 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.
>
> 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.
>
> Any advice?
>
> Thanks!
>
>
>
> --
> Jesse Waites
> JesseWaites.com
>
--
Jesse Waites
JesseWaites.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20160405/b4fb7620/attachment-0002.html>
More information about the Chat
mailing list