Permalink
Browse files

Include examples for negative ordinalize in the guide

  • Loading branch information...
1 parent 668cb42 commit d6ff2eea0b66df825105aa7b74a32db7fd3db8b9 @vijaydev vijaydev committed May 8, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/guides/source/active_support_core_extensions.textile
@@ -1833,6 +1833,8 @@ The method +ordinalize+ returns the ordinal string corresponding to the receiver
2.ordinalize # => "2nd"
53.ordinalize # => "53rd"
2009.ordinalize # => "2009th"
+-21.ordinalize # => "-21st"
+-134.ordinalize # => "-134th"
</ruby>
NOTE: Defined in +active_support/core_ext/integer/inflections.rb+.

0 comments on commit d6ff2ee

Please sign in to comment.