> On Jan 8, 2019, at 1:16 AM, fugee ohu <fugee279@gmail.com> wrote:
>
>
>
> On Monday, January 7, 2019 at 8:35:45 PM UTC-5, Walter Lee Davis wrote:
>
> > On Jan 7, 2019, at 7:50 PM, fugee ohu <fuge...@gmail.com> wrote:
> >
> >
> >
> > On Saturday, January 5, 2019 at 8:33:18 AM UTC-5, fugee ohu wrote:
> > I'm trying to override the main layout but the gem is actually using other gems together as a group so there's a separate gem for vendor Within the vendor gem can be found app/views but within my main app the question is what should the path to overrides be vendor/app/views or app/views/vendor
> >
> > Thanks Walter spree_frontend-3.6.6
>
> Okay, so you are trying to mount a replacement for something in spree/frontend/app/views/spree/layouts. To shadow over that path from your app, you will want to make a new directory at [your_project]/app/views/spree/layouts. Put whichever replacement layout file you want in that folder, and that's it -- no step three.
>
> Walter
>
> Why is frontend omitted from the path ?
Look at the paths again. Wherever you find 'app' is the pivot point for the paths. From the point of view of the template lookup system, that's the "you are here". Everything to the left of that will not be present in the lookup. Everything to the right of that is part of the resource path. This same principle works for other lookups, too; it's not restricted to view templates. Controllers, models, helpers -- anything your app needs and a gem might provide -- are all referenced this same way.
Walter
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/786a7cdf-443b-4f7b-973c-531d921a6252%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/507E9BF6-8E0F-4EFB-9439-E61C942B829C%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment