Forum: Ruby on Rails Simple: How to use TextHelper in a controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2006-05-16 01:28
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
0bcc972918891ef358b0b3dfb4e7f18b?d=identicon&s=25 Hammed Malik (Guest)
on 2006-05-16 17:17
(Received via mailing list)
This topic is locked and can not be replied to.