Forum: Ruby on Rails Using action view helpers (strip_tags) in a rake task?

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.
Philip H. (Guest)
on 2006-05-11 23:17
(Received via mailing list)
Hi all -

I've got a rake task that migrates some old data (simple, loop through
the
old stuff, modify it a bit, and save it to the new system).  That all
works great.

However, I'd like to use strip_tags() to remove all HTML from some of
the
fields I'm converting, but I can't figure out how to
include/use/require/load/etc the right stuff to make this work.

For now, I just copied the strip_tags() definition out of the
text_helper.rb file, but that is evil(tm)...

Am I just missing something obvious?

Thanks!

-philip
This topic is locked and can not be replied to.