Skip to content
Browse files

AS guide: documents String#parameterize

  • Loading branch information...
1 parent aab42cc commit fbce2327a9d327a203bb401708b6e3a4bd023e38 @fxn fxn committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 railties/guides/source/active_support_core_extensions.textile
13 railties/guides/source/active_support_core_extensions.textile
@@ -1437,6 +1437,19 @@ end
NOTE: Defined in +active_support/core_ext/string/inflections.rb+.
+h5. +parameterize+
+The method +parameterize+ normalizes its receiver in a way that can be used in pretty URLs.
+"John Smith".parameterize # => "john-smith"
+"Kurt Gödel".parameterize # => "kurt-godel"
+In fact, the result string is wrapped in an instance of +ActiveSupport::Multibyte::Chars+.
+NOTE: Defined in +active_support/core_ext/string/inflections.rb+.
h3. Extensions to +Numeric+
h4. Bytes

0 comments on commit fbce232

Please sign in to comment.
Something went wrong with that request. Please try again.