aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNicolás Hock Isaza <nhocki@gmail.com>2011-09-07 08:19:39 -0500
committerNicolás Hock Isaza <nhocki@gmail.com>2011-09-07 08:19:39 -0500
commitea83a8da312e1976b93596f2556150141b14376b (patch)
tree4cd0884b5cc5007a6cef1ac09d2b5f97adf85334 /actionpack
parent760fd1eb42038a64591036fc5d687afc98f272aa (diff)
downloadrails-ea83a8da312e1976b93596f2556150141b14376b.tar.gz
rails-ea83a8da312e1976b93596f2556150141b14376b.tar.bz2
rails-ea83a8da312e1976b93596f2556150141b14376b.zip
Fixing `record_key_for_dom_id` documentation.
The default implementation joins everything with '_' and not with '-'
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb
index c11d676c5e..2036442cfe 100644
--- a/actionpack/lib/action_controller/record_identifier.rb
+++ b/actionpack/lib/action_controller/record_identifier.rb
@@ -67,7 +67,7 @@ module ActionController
# This can be overwritten to customize the default generated string representation if desired.
# If you need to read back a key from a dom_id in order to query for the underlying database record,
# you should write a helper like 'person_record_from_dom_id' that will extract the key either based
- # on the default implementation (which just joins all key attributes with '-') or on your own
+ # on the default implementation (which just joins all key attributes with '_') or on your own
# overwritten version of the method. By default, this implementation passes the key string through a
# method that replaces all characters that are invalid inside DOM ids, with valid ones. You need to
# make sure yourself that your dom ids are valid, in case you overwrite this method.