Results 1 to 4 of 4
Thread: Automating partials?
Jun 9, 2006, 17:47 #1
- Join Date
- Jul 2002
- Los Angeles CA
- 0 Post(s)
- 0 Thread(s)
Hello, sorry for Ruby-newb question but I'm working on a project using RoR and it's my first time ever using it. I should probably also mention that I'm not a programmer but an interface designer.
The site I'm developing has about 40 or so page templates. The majority of the templates are laid out in a two column style, one for the content and the other for a sidebar. The sidebars carry what I call contextual "information modules" of images and text; some might appear only on one template whereas others will appears on multiple templates.
What I'd like to do is drop each module into a partial and then write a control or method that will appear on all templates that pulls in the partial based on the template CSS body class.
Is this the most efficient way for handling something like this? Thanks.