Report abuse


			
class ApplicationController < ActionController::Base
  before_filter :strip_accents

  def strip_accents
    thunk = lambda do |k,v|
      case v
        when String then v.remove_accents!
        when Hash   then v.each(&thunk)
      end
    end
    params.each(&thunk)
  end
end