# Question about partials and logic in rails

**URL:** <https://www.ruby-forum.com/t/question-about-partials-and-logic-in-rails/77255>\
**Category:** Ruby\
**Created:** [November 25, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/question-about-partials-and-logic-in-rails/77255 "2006-11-25T18:31:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn\_bright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@shawn\_bright](https://www.ruby-forum.com/u/shawn_bright)\
**Post date:** [November 25, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/question-about-partials-and-logic-in-rails/77255/1 "2006-11-25T18:31:25Z")

</div>

lo there,  
i have a partial i want to display that will contain a graph, but i  
don’t  
want to do all the data pulls from the rhtml, so if i do, say, a render  
partial \_chart.rhtml, will it respond to a controller function called  
chart  
and be able to use its variables ?  
Or is this a place to put a helper ?

thanks  
sk
