This project is archived and is in readonly mode.
ActionView::Helpers::TextHelper#truncate unclear documentation
Reported by Steve St. Martin | August 8th, 2009 @ 11:46 PM | in 2.3.4
https://rails.lighthouseapp.com/projects/8994/tickets/2899 has brought to light that while the intention of truncate is meant to return a total character length of :length that the examples provided don't always demonstrate it.
Comments and changes to this ticket
-
Steve St. Martin August 8th, 2009 @ 11:47 PM
- Tag changed from 2, 2.3.x, 3.0, bugmash, text_helper to 2, 2.3.x, 3.0, bugmash, text_helper
I've attached a patch to update documentation for 2-3-stable
-
Jeremy Kemper August 9th, 2009 @ 12:18 AM
- Assigned user set to Jeremy Kemper
- State changed from new to open
- Milestone set to 2.3.4
-
Matt Duncan August 9th, 2009 @ 12:28 AM
In the patch for master, there is an extra space at the end of the following line:
# for a total length not exceeding <tt>:length</tt>.
That said, excellent patch.
+1
-
Steve St. Martin August 9th, 2009 @ 01:00 AM
patch updated to remove trailing whitespace for those it matters to :P, still works against master too
-
Jeremy Kemper August 9th, 2009 @ 01:17 AM
- State changed from open to committed
2-3-stable: 679a0bf17fa9d74a4475753e9075bed8aea59e9a
master: 618771beb57e623e05f70fd31f3bdb0c04318017
-
Jeremy Kemper August 9th, 2009 @ 01:17 AM
- Tag changed from 2, 2.3.x, 3.0, bugmash, text_helper to 2, 2.3.x, 3.0, text_helper
-
Repository August 9th, 2009 @ 05:24 AM
(from [618771beb57e623e05f70fd31f3bdb0c04318017]) Update truncate documentation / examples to more clearly demonstrate its actual behavior
[#3016 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/618771beb57e623e05f70fd31f3bdb... -
Repository August 9th, 2009 @ 05:24 AM
(from [679a0bf17fa9d74a4475753e9075bed8aea59e9a]) Update truncate documentation / examples to more clearly demonstrate its actual behavior
[#3016 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/679a0bf17fa9d74a4475753e9075be... -
Andrea Campi October 16th, 2010 @ 11:44 PM
- Tag changed from 2, 2.3.x, 3.0, text_helper to 2-3-stable, 2.3.x, 3.0, text_helper
- Importance changed from to
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 3016 ActionView::Helpers::TextHelper#truncate unclear documentation [#3016 state:committed]
- 3016 ActionView::Helpers::TextHelper#truncate unclear documentation [#3016 state:committed]