First, sorry for my poor english, I will try to be clear
I’m wondering what are the best practices in order to obtain a view
data on a parent object, with sub-tabs, each tab for a nested resource.
Imagine that you have a Contact model. Each contact has :
- participations to meetings,
- comments (which could be polymorphic)
When you access to the show page of the contact, you’d like to see
information at the top of the page, and under these information, a
each tab for each nested-resource : documents, meetings, comments, …
Ho do you do this kind of layouts / views ?
A friend explain me that I can use the inherited_resources gem, which is
really useful to abstract and handle nested_controllers, but I still
find a good solution for the layouts/view.
Thank you by advance