aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-22/+22
|
* Tidy up excerpt separator logic a bitCarlos Antonio da Silva2012-09-081-17/+11
|
* Add a separation option for the excerpt functionGuirec Corbel2012-09-081-11/+49
| | | | | | | | | | The separation option enable to keep entire words, lines or anything. To split by line, like github, we can set the separation option as \n. To split by word, like google, we can set the separation option as " ". The radius option represent the number of lines or words we want to have in the result. The default behaviour is the same. If we don't set the separation option, it split the text any where.
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* Add `:escape` option for `truncate`Rafael Mendonça França2012-05-261-2/+5
| | | | This options can be used to not escape the result by default.
* Update the documentation and add CHANGELOG entryRafael Mendonça França2012-05-261-3/+3
|
* Test that the block used in truncate is escaped if it is not HTML safeRafael Mendonça França2012-05-261-13/+12
| | | | Refactoring the truncate method to not do a sort-circuit return
* Truncate now has the ability to receive a html option that allows it to call ↵Li Ellis Gallardo2012-05-261-2/+12
| | | | | | | | | | | | rails helpers. This way if my text is long I don't have to do something like this: .text = truncate(@text, :length => 27) if @text.size >= 27 = link_to "continue", notes_path, ....."")
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-191-1/+4
|\
| * minor fix wrapper tag documentationFrancesco Rodriguez2012-05-181-1/+1
| |
| * Minor fix to the wrapper tag documentation, the options hash is the last ↵Avi Tzurel2012-05-191-1/+1
| | | | | | | | one, added blank hash before that in the args list
| * Added wrapper tag documentation to the simple_format methodAvi Tzurel2012-05-191-1/+4
| |
* | Tidied and standardised text_helper implementations.Jeremy Walker2012-05-191-14/+20
| |
* | Removed old text_helper apis for highlight, excerpt and word_wrapJeremy Walker2012-05-171-35/+3
|/
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-171-3/+5
|\ | | | | | | | | Conflicts: activerecord/lib/active_record/core.rb
| * fix word_wrap eg output [ci skip]Vijay Dev2012-05-171-1/+3
| |
| * Fix code example for word_wrap helper.Hendy Tanata2012-05-171-2/+2
| |
* | Merge pull request #6273 from KensoDev/feature/simple_format_refactoringRafael Mendonça França2012-05-151-9/+19
|\ \ | |/ |/| Feature/simple format refactoring
| * Added the wrapper tag option to simple_formatAvi Tzurel2012-05-141-2/+4
| |
| * simple_format refactoringAvi Tzurel2012-05-141-9/+17
| | | | | | | | | | using split_paragraphs method and content_tag instead of string concatination
* | Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-11/+0
|/
* fix a couple of formatting issues [ci skip]Vijay Dev2012-05-091-2/+4
|
* Fix example url in text helperAlexey Vakhov2012-05-021-1/+1
|
* don't duplicate default values in text helperSergey Nartimov2012-04-111-12/+13
|
* use extract_options! in cycle helperSergey Nartimov2012-04-071-6/+4
|
* Highlight defaults to HTML5 `mark` elementBrian Cardarella2012-02-051-4/+4
|
* remove useless call to mb_charsSergey Nartimov2012-01-051-4/+4
|
* Include TagHelper but don't explicitly require itErik Michaels-Ober2011-12-121-1/+1
| | | | Allow autoloading to work as intended and avoid multiple requires.
* Fix and simplify highlight regexpAlexey Vakhov2011-11-101-1/+1
|
* ActionView::Helpers::TextHelper#simple_format should not change the text in ↵Casebook Developer2011-08-041-1/+1
| | | | place. Now it duplicates it.
* Do not change a frozen text passed to simple_format text helperTadas Tamosauskas2011-06-201-0/+1
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-181-1/+1
|\
| * cycle: make an odd number be marked as odd.Robert Massaioli2011-06-131-1/+1
| | | | | | | | Just a minor issue that was annoying me so I thought that I would jump in and fix it.
* | Use html_safeSantiago Pastorino2011-06-161-2/+2
|/
* Don't operate on the safebuffer, operate on a string and convert.Christopher Meiklejohn2011-06-071-1/+2
|
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-2/+2
|
* removing auto_link and moving it to the rails_autolink gem. :bomb:Aaron Patterson2011-05-021-125/+0
|
* Removing incorrect example resultsMatt Duncan2011-04-151-2/+2
|
* Fix syntax error in exampleMatt Duncan2011-04-151-1/+1
|
* do not return html safe strings from auto_linkAaron Patterson2011-04-051-2/+2
|
* Added RDoc info for accepted options for simple_format in TextHelper.Steve Schwartz2011-02-151-0/+7
|
* auto_link: avoid recognizing full width chars as a part of URI schemeAkira Matsuda2011-02-011-1/+1
| | | | | | | | fixes regression by http://github.com/rails/rails/commit/133ada6ab0f0cb7bef2bd40dbc18f2d5bc6b964e [#5503 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add a note to TextHelpers making explicit their default behavior of not ↵José Valim2010-11-081-0/+18
| | | | escaping but sanitizing.
* avoid a few comparisonsAaron Patterson2010-10-181-3/+3
|
* remove strange else blockAaron Patterson2010-10-181-9/+7
|
* skip extra work if no text or phrase was providedAaron Patterson2010-10-181-12/+11
|
* another case of extra nil? checkNeeraj Singh2010-09-301-1/+1
|
* Changed documentation for auto_link so that the truncate example works ↵Kevin Hughes2010-09-241-1/+1
| | | | | | [#5694 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* Concernify SanitizeHelper and TextHelper so including TextHelper correctly ↵wycats2010-08-041-0/+3
| | | | include SanitizeHelper and extends its ClassMethods