# Call an helper method from a controller

**URL:** <https://discuss.rubyonrails.org/t/call-an-helper-method-from-a-controller/2886>\
**Category:** rubyonrails-talk\
**Created:** [October 10, 2006, 3:31pm UTC](https://discuss.rubyonrails.org/t/call-an-helper-method-from-a-controller/2886 "2006-10-10T15:31:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff\_emminger](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jeff\_emminger](https://discuss.rubyonrails.org/u/jeff_emminger)\
**Post date:** [October 10, 2006, 3:31pm UTC](https://discuss.rubyonrails.org/t/call-an-helper-method-from-a-controller/2886/1 "2006-10-10T15:31:00Z")

</div>

define the helper in the controller, and use helper\_method maybe?

[http://groups-beta.google.com/group/rubyonrails-talk/browse\_thread/thread/e31977720617b676/8b5dd9e5209e3b3e?lnk=gst&q=view+controller+helper&rnum=1#8b5dd9e5209e3b3e](http://groups-beta.google.com/group/rubyonrails-talk/browse_thread/thread/e31977720617b676/8b5dd9e5209e3b3e?lnk=gst&q=view+controller+helper&rnum=1#8b5dd9e5209e3b3e)

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [October 14, 2009, 4:03pm UTC](https://discuss.rubyonrails.org/t/call-an-helper-method-from-a-controller/2886/2 "2009-10-14T16:03:25Z")

</div>

You can also directly instanciate a Helper object and call a method.

example with number\_to\_currency:

Object.new.extend(ActionView::Helpers::NumberHelper).number\_to\_currency(number, options)

but beware that is there are methods of other Helpers methods, they will fail.
