I\'m trying to call sanitize within a controller. Here\'s what I tried:
sanitize
class FooController < ApplicationController include ActionView::Hel
I'm not sure what you're trying to do here but I'm almost 100% certain it doesn't belong in the controller.
If you want to sanitize an attribute before you save it to the DB, do so in the model with a before save callback.
Otherwise, sanitize in the view template or view helper.