diff options
author | Geoffrey Roguelon <geoffrey.roguelon@gmail.com> | 2012-10-24 15:08:58 +0200 |
---|---|---|
committer | Geoffrey Roguelon <geoffrey.roguelon@gmail.com> | 2012-10-24 15:08:58 +0200 |
commit | 1e593db13a83637e5a07a170b7b6a4dbc9b5175e (patch) | |
tree | 05e4dbd706f85a1a8c63ce55a6f1cbe5ae72f348 /activesupport/lib | |
parent | 9edd4e18c411e6834569bbe7b6350f02342970d8 (diff) | |
download | rails-1e593db13a83637e5a07a170b7b6a4dbc9b5175e.tar.gz rails-1e593db13a83637e5a07a170b7b6a4dbc9b5175e.tar.bz2 rails-1e593db13a83637e5a07a170b7b6a4dbc9b5175e.zip |
Adding a missing parenthesis in the doc of String#parameterize.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index 6edfcd7493..341e2deec9 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -38,7 +38,7 @@ class String end # The reverse of +pluralize+, returns the singular form of a word in a string. - # + # # If the optional parameter +locale+ is specified, # the word will be singularized as a word of that language. # By default, this paramter is set to <tt>:en</tt>. @@ -160,7 +160,7 @@ class String # @person = Person.find(1) # # => #<Person id: 1, name: "Donald E. Knuth"> # - # <%= link_to(@person.name, person_path %> + # <%= link_to(@person.name, person_path) %> # # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a> def parameterize(sep = '-') ActiveSupport::Inflector.parameterize(self, sep) |