aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/capture_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update capture_helper.rbJess Brown2013-03-061-1/+1
| | | if there's content for the right column, then we need the two-column class, if not the one-column
* Fix #9360 regression in content_forNikolay Shebanov2013-02-251-1/+1
|
* copy edits [ci skip]Vijay Dev2012-12-041-9/+4
|
* Improves documentation of Capture helper [ci skip]Alvaro Pereyra2012-12-011-13/+12
|
* Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-5/+5
|
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* flushing output should write to the stream rather than mutating the response ↵Aaron Patterson2012-07-291-1/+1
| | | | object
* Replace the flush parameter with a Hash.Lucas Mazza2012-07-241-4/+4
|
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-1/+0
|
* Remove unnecessary in HTML 5 type attribute with default valueAndrey A.I. Sitnik2012-04-051-1/+1
|
* use AS::SafeBuffer#clone_empty for flushing the output_bufferAkira Matsuda2012-02-201-1/+1
|
* content_for with flush parametergrentis2011-12-291-8/+29
|
* remove checks for encodings availabilitySergey Nartimov2011-12-251-1/+1
|
* Merge pull request #2799 from tomstuart/3-1-stableSantiago Pastorino2011-09-051-3/+3
| | | | Never return stored content from content_for when a block is given
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-2/+2
|
* Add tests for content_for() for read, closes #475.José Valim2011-05-101-2/+6
|
* More cleanup and moving responsibilities around.José Valim2011-05-011-3/+3
|
* content_for should work with provide.José Valim2011-04-161-4/+4
|
* Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵José Valim2011-04-161-0/+11
| | | | inside a body, so you can stream.
* Initial work on fibered layout.José Valim2011-04-161-3/+3
|
* removes ActionView::Helpers::ScriptaculousHelperXavier Noria2011-04-131-2/+2
|
* s/ERb/ERB/gAkira Matsuda2011-04-031-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 hereSantiago Pastorino2010-11-021-1/+1
|
* Make sure capture's output gets html_escaped [#5545 state:resolved]Jeff Kreeftmeijer2010-11-021-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é Valim2010-08-291-1/+1
|
* Fix capture_helper.rb api documentation, unescaped script tag was breaking ↵Jaime Iniesta2010-08-261-1/+1
| | | | it on the content_for explanation
* Fixed output_buffer encoding problem [#5179]Sebastian A. Espindola2010-07-251-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 caseJeremy Kemper2010-06-281-3/+1
|
* Adds title and description where needed.Rizwan Reza2010-06-161-0/+2
|
* Added extra documentation for content_for helperJeroen van Dijk2010-05-151-6/+25
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
|
* Eliminate warnings for AM on 1.8wycats2010-03-161-1/+1
|
* link_to_remote -> link_to :remote => trueJeremy Kemper2010-03-151-1/+1
|
* Add deprecation notices for <% %>.Carlhuda2010-03-151-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_bufferXavier Noria2010-03-151-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 appsCarlhuda2010-03-091-9/+5
|
* Deleted all references to ActionView::SafeBuffer in favor of ↵Santiago Pastorino2010-01-311-1/+1
| | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-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 Curran2009-06-211-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 Lerche2009-06-171-4/+0
| | | | what the proc does in various cases.
* Drive the final stake through @content_for_*'s heart!Yehuda Katz + Carl Lerche2009-06-171-3/+2
|
* Ruby 1.9: flushing the output buffer preserves its encodingJeremy Kemper2009-05-281-3/+10
|
* Introduce flush_output_buffer to append the buffer to the response body then ↵Jeremy Kemper2009-03-131-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 Kemper2008-07-151-8/+9
| | | | update block
* WhitespaceMichael Koziarski2008-07-111-2/+1
|
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-2/+6
| | | | variable visible in block binding.
* with_output_buffer returns the temporary buffer instead of the result of the ↵Jeremy Kemper2008-06-081-0/+1
| | | | block
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-3/+3
| | | | the instance variable so others can override the methods.
* Remove some internal dead code that supported content_forJeremy Kemper2008-06-061-15/+5
|
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-5/+13
|