Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added TextHelper#current_cycle to return the current cycle for better design ↵ | Ken Collins | 2008-08-27 | 1 | -3/+40 |
| | | | | | | | | options. [#417 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Require missing libraries and check for defined ActionController constant so ↵ | Joshua Peek | 2008-08-26 | 1 | -1/+10 |
| | | | | ActionView can be used standalone | ||||
* | Fixed autolink regexp compatibility for ruby 1.9 [#783 state:resolved] | Stefan Kaes | 2008-08-09 | 1 | -1/+1 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Reapply 'cab168ac' because it was accidentally patched over in '10d9fe4b' | Joshua Peek | 2008-07-29 | 1 | -1/+1 |
| | |||||
* | Refactored TextHelper#truncate, highlight, excerpt, word_wrap and auto_link ↵ | Clemens Kofler | 2008-07-27 | 1 | -58/+148 |
| | | | | | | to accept options hash [#705 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + and ? ↵ | Joshua Peek | 2008-07-19 | 1 | -1/+1 |
| | | | | with '*' | ||||
* | Pass caller to concat deprecation warning | Jeremy Kemper | 2008-07-09 | 1 | -1/+1 |
| | |||||
* | Allow single quote (the ' character) in the middle of URL when ↵ | Cheah Chu Yeow | 2008-06-27 | 1 | -1/+1 |
| | | | | | | auto_link-ing. [#471 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Check whether blocks are called from erb using a special __in_erb_template ↵ | Jeremy Kemper | 2008-06-19 | 1 | -5/+1 |
| | | | | variable visible in block binding. | ||||
* | add deprecation for the #concat helper's 2nd argument, which is no longer needed | rick | 2008-06-09 | 1 | -1/+5 |
| | |||||
* | Use output_buffer reader and writer methods exclusively instead of hitting ↵ | Jeremy Kemper | 2008-06-08 | 1 | -2/+2 |
| | | | | the instance variable so others can override the methods. | ||||
* | concat should ignore nil | Jeremy Kemper | 2008-06-06 | 1 | -1/+1 |
| | |||||
* | Don't pass block binding to concat | Jeremy Kemper | 2008-06-02 | 1 | -4/+4 |
| | |||||
* | Try replacing _erbout with @output_buffer | Jeremy Kemper | 2008-06-02 | 1 | -2/+6 |
| | |||||
* | Fix auto_link helper for already linked urls. [#72 state:resolved] | Kevin Glowacz | 2008-05-22 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Parentheses should be acceptable characters for auto_link_urls. [#234 ↵ | Adam | 2008-05-22 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | auto_link helper fails to recognize links separated by space. [#72 ↵ | Eugene Pimenov | 2008-05-16 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Don't fallback to just adding "'s" in TextHelper#pluralize, because the ↵ | Joshua Peek | 2008-05-14 | 1 | -68/+59 |
| | | | | Inflector is always loaded. | ||||
* | Allow the #simple_format text_helper to take an html_options hash for each ↵ | Rick Olson | 2008-03-24 | 1 | -5/+13 |
| | | | | | | paragraph. Closes #2448 [Francois Beausoleil, thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Docfix (closes #11230) [Henrik N] | David Heinemeier Hansson | 2008-03-15 | 1 | -7/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that TextHelper#excerpt would include one character too many (closes ↵ | David Heinemeier Hansson | 2008-03-15 | 1 | -9/+9 |
| | | | | | | #11268) [Irfy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: truncate and excerpt helpers | Jeremy Kemper | 2008-01-07 | 1 | -52/+84 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix that auto_link looks for ='s in url paths (Amazon urls have them). ↵ | Rick Olson | 2007-12-28 | 1 | -1/+1 |
| | | | | | | Closes #10640 [bgreenlee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Docfix (closes #10493) | David Heinemeier Hansson | 2007-12-16 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix syntax error in documentation example for cycle method. Closes #8735 [foca] | Marcel Molina | 2007-11-06 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Extracted sanitization methods from TextHelper to SanitizeHelper [DHH] ↵ | David Heinemeier Hansson | 2007-10-10 | 1 | -308/+1 |
| | | | | | | Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat, consistent load paths | Jeremy Kemper | 2007-10-02 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that strip_tags blows up with invalid html (closes #9730) [lifo] | David Heinemeier Hansson | 2007-09-29 | 1 | -4/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed spelling errors (closes #9706) [tarmo/rmm5t] | David Heinemeier Hansson | 2007-09-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | move TextHelper#sanitize config options to the TextHelper module so it can ↵ | Rick Olson | 2007-09-23 | 1 | -1/+146 |
| | | | | | | be included and used with any class, not just ActionView::Base git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Merge csrf_killer plugin into rails. Adds RequestForgeryProtection model ↵ | Rick Olson | 2007-09-23 | 1 | -19/+19 |
| | | | | | | that verifies session-specific _tokens for non-GET requests. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Secure #sanitize, #strip_tags, and #strip_links helpers against xss attacks. ↵ | Rick Olson | 2007-09-23 | 1 | -38/+98 |
| | | | | | | Closes #8877. [Rick, lifofifo, Jacques Distler] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed TextHelper#word_wrap for multiline strings with extra carrier returns ↵ | David Heinemeier Hansson | 2007-09-22 | 1 | -1/+3 |
| | | | | | | (closes #8663) [seth] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7562 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Autolink behaves well with emails embedded in URLs. Closes #7313. | Jeremy Kemper | 2007-09-20 | 1 | -5/+11 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Revert [7397]. Reopens #7313. | Jeremy Kemper | 2007-09-20 | 1 | -11/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Avoid RDoc warning | David Heinemeier Hansson | 2007-09-15 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix misleading documentation for truncate. [esad] Closes #9104 | Michael Koziarski | 2007-09-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make auto link behave well with URLs containing email addresses. Closes ↵ | Michael Koziarski | 2007-09-02 | 1 | -5/+11 |
| | | | | | | #7313 [jeremymcnally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Massive documentation update for all helpers (closes #8223, #8177, #8175, ↵ | David Heinemeier Hansson | 2007-06-23 | 1 | -48/+218 |
| | | | | | | #8108, #7977, #7972, #7971, #7969) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Highlight helper highlights one or many terms in a single pass. | Jeremy Kemper | 2007-03-30 | 1 | -5/+12 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make sure that the string returned by TextHelper#truncate is actually a ↵ | David Heinemeier Hansson | 2007-01-31 | 1 | -1/+1 |
| | | | | | | string, not a char proxy -- that should only be used internally while working on a multibyte-safe way of truncating [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵ | Jeremy Kemper | 2007-01-28 | 1 | -14/+2 |
| | | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Autolinking recognizes trailing and embedded . , : ; Closes #7354. | Jeremy Kemper | 2007-01-24 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make TextHelper::auto_link recognize URLs with colons in path correctly, ↵ | Thomas Fuchs | 2007-01-21 | 1 | -14/+14 |
| | | | | | | fixes #7268 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improved auto_link to match more valid urls correctly | Tobias Lütke | 2006-12-07 | 1 | -13/+13 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | strip_tags passes through blank args such as nil or "". Closes #6702, ↵ | Jeremy Kemper | 2006-11-26 | 1 | -1/+1 |
| | | | | | | references #2229. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | simple_format helper doesn't choke on nil. Closes #6644. | Jeremy Kemper | 2006-11-19 | 1 | -6/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | ActionView::Base.erb_variable accessor names the buffer variable used to ↵ | Jeremy Kemper | 2006-11-17 | 1 | -1/+1 |
| | | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | pluralize helper interprets nil as zero. Closes #6474. | Jeremy Kemper | 2006-11-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Docfix (closes #6393) | David Heinemeier Hansson | 2006-10-22 | 1 | -76/+117 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |