# Template question

**URL:** <https://www.ruby-forum.com/t/template-question/152950>\
**Category:** Rails\
**Created:** [November 10, 2008, 11:26am UTC](https://www.ruby-forum.com/t/template-question/152950 "2008-11-10T11:26:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 10, 2008, 11:26am UTC](https://www.ruby-forum.com/t/template-question/152950/1 "2008-11-10T11:26:18Z")

</div>

Hi,

I have 4 controllers, a, b c, and d. In the controllers i created a  
method with the name “homepage”.

What is the best solution (partials, content\_for ect. ) the create the  
homepage-template with the content of the described controllers with the  
method “homepage”

Grt…remco

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 10, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/template-question/152950/2 "2008-11-10T16:12:19Z")

</div>

Remco S. wrote:

> What is the best solution (partials, content\_for ect. ) the create the  
> homepage-template with the content of the described controllers with the  
> method “homepage”
> 
> Grt…remco

Not sure I entirely understand the question, you can alwas create a  
template and then say which template you will be using in the  
controllers method

render :layout =\> ‘homepage-template’

Not sure if this helps at all,

-S
