Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a missing parenthesis in the doc of String#parameterize.

  • Loading branch information...
commit 1e593db13a83637e5a07a170b7b6a4dbc9b5175e 1 parent 9edd4e1
@GRoguelon GRoguelon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/string/inflections.rb
View
4 activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -38,7 +38,7 @@ def pluralize(count = nil, locale = :en)
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 @@ def deconstantize
# @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)
Please sign in to comment.
Something went wrong with that request. Please try again.