instance method tableize

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

tableize()

Creates the name of a table like Rails does for models to table names. This method uses the pluralize method on the last word in the string.

"RawScaledScorer".tableize # => "raw_scaled_scorers"
"egg_and_ham".tableize     # => "egg_and_hams"
"fancyCategory".tableize   # => "fancy_categories"
Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 115
        def tableize
          Inflector.tableize(self)
        end

Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 115 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::CoreExtensions::String::Inflections

Type at least 2 characters to search.

↑↓ navigate · open · esc close