Permalink
Browse files

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

  • Loading branch information...
1 parent 87ac5b4 commit 9f1a47de5360e97176613fef8dbc57c2c3c22dcf @GRoguelon GRoguelon committed Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -149,7 +149,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)

0 comments on commit 9f1a47d

Please sign in to comment.