# Helper?

**URL:** <https://www.ruby-forum.com/t/helper/132841>\
**Category:** Rails\
**Created:** [March 25, 2008, 8:08am UTC](https://www.ruby-forum.com/t/helper/132841 "2008-03-25T08:08:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [March 25, 2008, 8:08am UTC](https://www.ruby-forum.com/t/helper/132841/1 "2008-03-25T08:08:35Z")

</div>

Hi all…

```
Can a helper method be used to reduce the repeated codes in the

```

controller?

```
Please help with an example.

```

Thanks  
Suneeta

---

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [March 25, 2008, 10:00am UTC](https://www.ruby-forum.com/t/helper/132841/2 "2008-03-25T10:00:52Z")

</div>

On 25 Mar 2008, at 07:08, Suneeta Km wrote:

> Hi all…
> 
> Can a helper method be used to reduce the repeated codes in the  
> controller?

In the context of rails, helper tends to mean “view helper”, so usualy  
not. But there’s no reason you can’t stick common controller code in a  
module. If you have too much in your controllers it might be a sign  
that some of that code should be in your models.

Fred
