# Best practice/Strategy Question

**URL:** <https://www.ruby-forum.com/t/best-practice-strategy-question/107671>\
**Category:** Rails\
**Created:** [June 25, 2007, 5:54am UTC](https://www.ruby-forum.com/t/best-practice-strategy-question/107671 "2007-06-25T05:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jables](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/58956e/32.png) [@Jables](https://www.ruby-forum.com/u/Jables)\
**Post date:** [June 25, 2007, 5:54am UTC](https://www.ruby-forum.com/t/best-practice-strategy-question/107671/1 "2007-06-25T05:54:37Z")

</div>

I have a main layout for my page and instead of making it really long  
I was thinking it would be nice to modularize things such as stories/  
categories/tags/tools. To me it seems like each of these different  
sections should be in a different controller, for instance a  
controller to query the database, pull all the relevant tags and  
display them, but they all need to be on one page at once. I hope  
that makes sense. My question is how should I solve this problem.  
Should I render each section as a partial, passing in variables to the  
partial. Should I write a long layout and do before-filters in each  
one of my controllers to get all the info for the tags/categories, or  
is there a solution altogether I am missing. Is it possible to render  
an action as a partial? Thanks in advance!

JB
