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 15:43
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. Best, -- Marnen Laibow-Koser http://www.marnen.org email@example.com
on 2009-05-09 22:22
See this note on getting strip_tags outside views: http://apidock.com/rails/ActionView/Helpers/Saniti... Regards Kieran