Forum: Ruby on Rails want to put processing logic in Controller but no strip_tags

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
389102eb1ab4abf162c1cd1f7b147d5a?d=identicon&s=25 Jian Lin (jianlin)
on 2009-05-09 15:43
I want to put the processing logic in the controller... and it has a
strip_tags call...  and the controller portion will say the function
doesn't exist.

so is there a way to call strip_tags from the controller?  (instead of
from view).
Dd2d775dea75b381edb1bbf0600a0907?d=identicon&s=25 Marnen Laibow-Koser (marnen)
on 2009-05-09 19:44
Jian Lin wrote:
> I want to put the processing logic in the controller...

No you don't.  In general, that sort of logic should probably be in a
model.  If you can say more about what you're trying to accomplish,
perhaps we can give more specific suggestions.

Marnen Laibow-Koser
74198b06bc9e68739debfe6c23e070d3?d=identicon&s=25 Kieran P (Guest)
on 2009-05-09 22:22
(Received via mailing list)
See this note on getting strip_tags outside views:

This topic is locked and can not be replied to.