Forum: Ruby on Rails Best practice/Strategy Question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jables (Guest)
on 2007-06-25 07:54
(Received via mailing list)
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!

This topic is locked and can not be replied to.