# Rails 3, using helpers in controller

**URL:** <https://www.ruby-forum.com/t/rails-3-using-helpers-in-controller/195553>\
**Category:** Rails\
**Created:** [September 25, 2010, 1:43am UTC](https://www.ruby-forum.com/t/rails-3-using-helpers-in-controller/195553 "2010-09-25T01:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jozefvaclavik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de0a6/32.png) [@jozefvaclavik](https://www.ruby-forum.com/u/jozefvaclavik)\
**Post date:** [September 25, 2010, 1:43am UTC](https://www.ruby-forum.com/t/rails-3-using-helpers-in-controller/195553/1 "2010-09-25T01:43:34Z")

</div>

Hi everyone,

is there any way how to use Helpers in Controllers in Rails 3? I was  
trying to google about it, but no luck.

In old Rails times (2.x) we were using something like this.

my\_active\_record\_object.variable = “This is the message body:  
 #{@template.simple\_format(params[“message”])}”

point is that when we wanted to attach text from Text Area to some other  
HTML text with leaving breaks and paragraphs and so. We were able to  
call helper methods by using variable @template in controller. But thats  
not possible in Rails 3.x.

Any ideas for solution? I couldnt find anything in some deprecations or  
migration guides. Thx.
