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

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.
Jian L. (Guest)
on 2009-05-09 17: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).
Marnen L. (Guest)
on 2009-05-09 21:44
Jian L. 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.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
removed_email_address@domain.invalid
Kieran P (Guest)
on 2009-05-10 00:22
(Received via mailing list)
See this note on getting strip_tags outside views:

http://apidock.com/rails/ActionView/Helpers/Saniti...

Regards
Kieran
This topic is locked and can not be replied to.