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).
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).
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.
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
See this note on getting strip_tags outside views:
Regards
Kieran
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs