Simple: How to use TextHelper in a controller


#1

I’m having trouble succesfully getting access to the

ActionView::Helpers::TextHelper.strip_tags

method from one of my controllers.

If I try to call it directly using

ActionView::Helpers::TextHelper.strip_tags

I get

undefined method `strip_tags’ for ActionView::Helpers::TextHelper:Module

What is the preferred way to make ActionView helpers available to a
descendant of ActionController?

Thanks,
Wes


#2

check out: http://www.bigbold.com/snippets/posts/show/1799