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).
on 2009-05-09 17:43
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 firstname.lastname@example.org
on 2009-05-10 00:22
See this note on getting strip_tags outside views: http://apidock.com/rails/ActionView/Helpers/Saniti... Regards Kieran