# Proper rails mvc design: question about where to put certain

**URL:** <https://www.ruby-forum.com/t/proper-rails-mvc-design-question-about-where-to-put-certain/113495>\
**Category:** Rails\
**Created:** [August 31, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/proper-rails-mvc-design-question-about-where-to-put-certain/113495 "2007-08-31T18:48:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ladina\_Rothaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/45deac/32.png) [@Ladina\_Rothaus](https://www.ruby-forum.com/u/Ladina_Rothaus)\
**Post date:** [August 31, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/proper-rails-mvc-design-question-about-where-to-put-certain/113495/1 "2007-08-31T18:48:17Z")

</div>

hi there!

ok heres my problem:  
i have a box where i want to display upcoming radio shows. the one  
which is currently running plus the n next ones.  
so there should be a call to render a (or 2) templates in my main  
layout which gets includet in various controllers.

since there is no method of the controller available in the layout i  
have to place the logic somewhere else.

i see 1.5 possibilities:  
a) components (thats the 0.5, we’ll forget about this right here since  
it will be depreciated soon anyway)

b) make 1 or 2 static functions in the model

but im quite sure there is another solution to this problem? is there  
a more elegant way to do this?

thanks!
