Do you use the same approach when you have nested resources??
There is some “debate” about the usefulness of nested resources. I
started to use them, but decided that it was better for me to not. So I
map an invoice resource separately from a customer resource even though
an invoice cannot exist independently. So in my partials subfolder, I
would have folders for customer partials and invoice partials.
It might sound like a lot to manage, but since I tend to have a boat
load of partials, it is very well organized and incredibly easy to share
across different resources where they might be needed.
Do you put ALL partials in there? or only the shared?
I started with having only shared ones in there, but I found that I did
not like having partials in two places, so I moved all of them into that
structure. Now I know where they are without having to think about
whether they are shared or not.
Web Blogger mentioned using a nested folder depending on the purpose of
the partials. I do this too. For example, I have a wizard process for
adding players, coaches, referees, etc to a sports system. These
processes happen via a sports controller, so in my folder structure, I
(I wrote the wizard in such a way that the same partials are used
regardless of whether it’s a player, coach, or referee).