class String

def tableize

'fancyCategory'.tableize # => "fancy_categories"
'egg_and_ham'.tableize # => "egg_and_hams"
'RawScaledScorer'.tableize # => "raw_scaled_scorers"

uses the +pluralize+ method on the last word in the string.
Creates the name of a table like Rails does for models to table names. This method
def tableize
  ActiveSupport::Inflector.tableize(self)
end