Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removing ==Examples and last blank lines of docs from actionpack | Francesco Rodriguez | 2012-05-15 | 1 | -1/+0 |
| | |||||
* | Remove unnecessary in HTML 5 type attribute with default value | Andrey A.I. Sitnik | 2012-04-05 | 1 | -1/+1 |
| | |||||
* | use AS::SafeBuffer#clone_empty for flushing the output_buffer | Akira Matsuda | 2012-02-20 | 1 | -1/+1 |
| | |||||
* | content_for with flush parameter | grentis | 2011-12-29 | 1 | -8/+29 |
| | |||||
* | remove checks for encodings availability | Sergey Nartimov | 2011-12-25 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2799 from tomstuart/3-1-stable | Santiago Pastorino | 2011-09-05 | 1 | -3/+3 |
| | | | | Never return stored content from content_for when a block is given | ||||
* | Remove extra white spaces on ActionPack docs. | Sebastian Martinez | 2011-05-23 | 1 | -2/+2 |
| | |||||
* | Add tests for content_for() for read, closes #475. | José Valim | 2011-05-10 | 1 | -2/+6 |
| | |||||
* | More cleanup and moving responsibilities around. | José Valim | 2011-05-01 | 1 | -3/+3 |
| | |||||
* | content_for should work with provide. | José Valim | 2011-04-16 | 1 | -4/+4 |
| | |||||
* | Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵ | José Valim | 2011-04-16 | 1 | -0/+11 |
| | | | | inside a body, so you can stream. | ||||
* | Initial work on fibered layout. | José Valim | 2011-04-16 | 1 | -3/+3 |
| | |||||
* | removes ActionView::Helpers::ScriptaculousHelper | Xavier Noria | 2011-04-13 | 1 | -2/+2 |
| | |||||
* | s/ERb/ERB/g | Akira Matsuda | 2011-04-03 | 1 | -1/+1 |
| | | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html | ||||
* | Call as ERB::Util.html_escape since is not the module is not included here | Santiago Pastorino | 2010-11-02 | 1 | -1/+1 |
| | |||||
* | Make sure capture's output gets html_escaped [#5545 state:resolved] | Jeff Kreeftmeijer | 2010-11-02 | 1 | -1/+2 |
| | | | | | | | Also remove a duplicate test_link_to_unless assertion and add .html_safe to the remaining one. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove NonConcattingString. | José Valim | 2010-08-29 | 1 | -1/+1 |
| | |||||
* | Fix capture_helper.rb api documentation, unescaped script tag was breaking ↵ | Jaime Iniesta | 2010-08-26 | 1 | -1/+1 |
| | | | | it on the content_for explanation | ||||
* | Fixed output_buffer encoding problem [#5179] | Sebastian A. Espindola | 2010-07-25 | 1 | -1/+1 |
| | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Slice new buffer from beginning of old buffer to skip encoding special case | Jeremy Kemper | 2010-06-28 | 1 | -3/+1 |
| | |||||
* | Adds title and description where needed. | Rizwan Reza | 2010-06-16 | 1 | -0/+2 |
| | |||||
* | Added extra documentation for content_for helper | Jeroen van Dijk | 2010-05-15 | 1 | -6/+25 |
| | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+2 |
| | |||||
* | Eliminate warnings for AM on 1.8 | wycats | 2010-03-16 | 1 | -1/+1 |
| | |||||
* | link_to_remote -> link_to :remote => true | Jeremy Kemper | 2010-03-15 | 1 | -1/+1 |
| | |||||
* | Add deprecation notices for <% %>. | Carlhuda | 2010-03-15 | 1 | -13/+15 |
| | | | | | | | | | | | | | | | | * The approach is to compile <% %> into a method call that checks whether the value returned from a block is a String. If it is, it concats to the buffer and prints a deprecation warning. * <%= %> uses exactly the same logic to compile the template, which first checks to see whether it's compiling a block. * This should have no impact on other uses of block in templates. For instance, in <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array, not a String, so the result is not concatenated * In two cases (#capture and #cache), a String can be returned that should *never* be concatenated. We have temporarily created a String subclass called NonConcattingString which behaves (and is serialized) identically to String, but is not concatenated by the code that handles deprecated <% %> block helpers. Once we remove support for <% %> block helpers, we can remove NonConcattingString. | ||||
* | with_output_buffer cannot assume there's an output_buffer | Xavier Noria | 2010-03-15 | 1 | -1/+1 |
| | | | | | | [#4182 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Deprecate block_called_from_erb? pending a solution for getting it into apps | Carlhuda | 2010-03-09 | 1 | -9/+5 |
| | |||||
* | Deleted all references to ActionView::SafeBuffer in favor of ↵ | Santiago Pastorino | 2010-01-31 | 1 | -1/+1 |
| | | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | ||||
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 1 | -1/+1 |
| | | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration. | ||||
* | Add content_for?(:name) helper to check if content_for(:name) is present ↵ | Darragh Curran | 2009-06-21 | 1 | -0/+22 |
| | | | | | | [#1311 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Extract the layout proc into a method, and write documentation explaining ↵ | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -4/+0 |
| | | | | what the proc does in various cases. | ||||
* | Drive the final stake through @content_for_*'s heart! | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -3/+2 |
| | |||||
* | Ruby 1.9: flushing the output buffer preserves its encoding | Jeremy Kemper | 2009-05-28 | 1 | -3/+10 |
| | |||||
* | Introduce flush_output_buffer to append the buffer to the response body then ↵ | Jeremy Kemper | 2009-03-13 | 1 | -0/+8 |
| | | | | start a new buffer. Useful for pushing custom parts to the response body without disrupting template rendering. | ||||
* | JavaScriptGenerator should only sets output_buffer for the duration of the ↵ | Jeremy Kemper | 2008-07-15 | 1 | -8/+9 |
| | | | | update block | ||||
* | Whitespace | Michael Koziarski | 2008-07-11 | 1 | -2/+1 |
| | |||||
* | Check whether blocks are called from erb using a special __in_erb_template ↵ | Jeremy Kemper | 2008-06-19 | 1 | -2/+6 |
| | | | | variable visible in block binding. | ||||
* | with_output_buffer returns the temporary buffer instead of the result of the ↵ | Jeremy Kemper | 2008-06-08 | 1 | -0/+1 |
| | | | | block | ||||
* | Use output_buffer reader and writer methods exclusively instead of hitting ↵ | Jeremy Kemper | 2008-06-08 | 1 | -3/+3 |
| | | | | the instance variable so others can override the methods. | ||||
* | Remove some internal dead code that supported content_for | Jeremy Kemper | 2008-06-06 | 1 | -15/+5 |
| | |||||
* | Work with @output_buffer instead of _erbout | Jeremy Kemper | 2008-06-02 | 1 | -5/+13 |
| | |||||
* | Try replacing _erbout with @output_buffer | Jeremy Kemper | 2008-06-02 | 1 | -42/+14 |
| | |||||
* | Update doc (closes #11402) | David Heinemeier Hansson | 2008-03-28 | 1 | -2/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9116 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 | ||||
* | Stop rdoc from whining | David Heinemeier Hansson | 2007-09-24 | 1 | -3/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed CaptureHelper#content_for to work with the optional content parameter ↵ | David Heinemeier Hansson | 2007-09-21 | 1 | -3/+9 |
| | | | | | | instead of just the block #9434 [sandofsky/wildchild] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Its just ERb now | David Heinemeier Hansson | 2007-07-24 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve capture helper documentation. Closes #8796. | Jeremy Kemper | 2007-06-28 | 1 | -25/+41 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Massive documentation update for all helpers (closes #8223, #8177, #8175, ↵ | David Heinemeier Hansson | 2007-06-23 | 1 | -53/+65 |
| | | | | | | #8108, #7977, #7972, #7971, #7969) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |