New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sj26's fork with specs #2
Conversation
Pulled in, thanks! |
Awesome. Now could you please kindly release this as new gem version? Cause I actually want to use nestive as a dependency in other gem of mine. Tnx! |
I will, but would like to go play with what we have a grok the tests for a bit before I push a new gem into the unsuspecting public. Expect one next week and feel free to hassle me around Wednesday :) |
Also, what's the dependency? Something cool I want to know about? |
Release? :) |
The difference was that you could nest in layouts as well as in views, the original prototype only rendered the top-most layout containing the bottom-most view. |
@sj26 can you give me a concrete "this didn't work, now it does" gist? I seem to be able to do this in the current gem, but am probably just misunderstanding :) |
@justinfrench something like that: https://gist.github.com/2357403 Basically, you can extend layout that is already an extension of some other layout and so on. this was not possible before @sj26 patches. |
Correct. Before the patch you could nest views, but not layouts. |
@sj26 @rwz this is really surprising to me, i must be missing something. I'm trying to come up with the most minimalist test case for what you're trying to describe. Is this gist it? https://gist.github.com/2362758 There's two samples there, one with a layout specified in the controller, one in the view. In both cases, the layout is "blog" and "blog" extends "application". Pretty damn sure that works just fine, correct me if I'm wrong :) So, trying to figure out what I'm missing... @rwz's gist had a Assuming that's it, can one of you fork my gist and add the smallest amount of change possible to show what's now supported? It might also help to know exactly which specs are testing this new feature. Sorry I'm slow on this, but my head has been deep inside two big apps without nestive for months and months :) |
I don't know what to say here, really. I prefer default rails approach with Every layout i use is an extension of some other parent layout with small changes and additions. I usually do 3 to 6 extensions for some inner layouts. They all are inherited from most basic layout with only head and body tags in it. That approach does not work without the patch since it tries to render only top level layout inside bottom level layout. |
This stuff is covered in |
(the extends path change is just a nicety, not a significant thing.) |
No description provided.