Skip to content
This repository

Feb 21, 2012

  1. Akira Matsuda

    use AS::SafeBuffer#clone_empty for flushing the output_buffer

    authored February 13, 2012 tenderlove committed February 20, 2012

Sep 01, 2011

  1. Tom Stuart

    Never return stored content from content_for when a block is given

    The capture helper may return nil when evaluation of the block has
    produced a buffer which contains only whitespace, but that doesn't
    mean content_for should return stored content.
    authored September 01, 2011

May 10, 2011

  1. José Valim

    Add tests for content_for() for read, closes #475.

    authored May 10, 2011

May 01, 2011

  1. José Valim

    More cleanup and moving responsibilities around.

    authored May 01, 2011

Apr 16, 2011

  1. José Valim

    content_for should work with provide.

    authored April 16, 2011
  2. José Valim

    Yo dawg, I heard you like streaming. So I put a fiber, inside a block…

    …, inside a body, so you can stream.
    authored April 16, 2011

Apr 15, 2011

  1. José Valim

    Initial work on fibered layout.

    authored April 16, 2011

Apr 13, 2011

  1. Xavier Noria

    removes ActionView::Helpers::ScriptaculousHelper

    authored March 26, 2011

Apr 03, 2011

  1. Akira Matsuda

    s/ERb/ERB/g

    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
    authored April 03, 2011

Nov 02, 2010

  1. Santiago Pastorino

    Call as ERB::Util.html_escape since is not the module is not included…

    … here
    authored November 02, 2010
  2. Jeff Kreeftmeijer

    Make sure capture's output gets html_escaped [#5545 state:resolved]

    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>
    authored October 11, 2010 spastorino committed November 02, 2010

Aug 30, 2010

  1. José Valim

    Remove NonConcattingString.

    authored August 29, 2010

Aug 26, 2010

  1. Jaime Iniesta

    Fix capture_helper.rb api documentation, unescaped script tag was bre…

    …aking it on the content_for explanation
    authored August 26, 2010 fxn committed August 26, 2010

Jul 25, 2010

  1. Sebastian A. Espindola

    Fixed output_buffer encoding problem [#5179]

    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored July 25, 2010 josevalim committed July 25, 2010

Jun 28, 2010

  1. Jeremy Kemper

    Slice new buffer from beginning of old buffer to skip encoding specia…

    …l case
    authored June 28, 2010

Jun 16, 2010

  1. Rizwan Reza

    Adds title and description where needed.

    authored June 16, 2010

May 15, 2010

  1. Jeroen van Dijk

    Added extra documentation for content_for helper

Mar 28, 2010

  1. Xavier Noria

    adds missing requires for Object#blank? and Object#present?

    authored March 28, 2010

Mar 17, 2010

  1. Yehuda Katz

    Eliminate warnings for AM on 1.8

    authored March 16, 2010

Mar 16, 2010

  1. Jeremy Kemper

    link_to_remote -> link_to :remote => true

    authored March 15, 2010

Mar 15, 2010

  1. Add deprecation notices for <% %>.

      * 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.
    authored March 15, 2010
  2. Xavier Noria

    with_output_buffer cannot assume there's an output_buffer

    [#4182 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    authored March 15, 2010 jeremy committed March 15, 2010

Mar 10, 2010

  1. Deprecate block_called_from_erb? pending a solution for getting it in…

    …to apps
    authored March 09, 2010 wycats committed March 09, 2010

Feb 01, 2010

  1. Santiago Pastorino

    Deleted all references to ActionView::SafeBuffer in favor of ActiveSu…

    …pport::SafeBuffer
    
    Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
    authored February 01, 2010 Yehuda Katz committed January 31, 2010

Oct 07, 2009

  1. Michael Koziarski

    Switch to on-by-default XSS escaping for rails.

      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.
    authored October 08, 2009

Jun 21, 2009

  1. Darragh Curran

    Add content_for?(:name) helper to check if content_for(:name) is pres…

    …ent [#1311 state:resolved]
    
    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
    authored June 21, 2009 lifo committed June 21, 2009

Jun 18, 2009

  1. Extract the layout proc into a method, and write documentation explai…

    …ning what the proc does in various cases.
    authored June 17, 2009
  2. Drive the final stake through @content_for_*'s heart!

    authored June 17, 2009

May 28, 2009

  1. Jeremy Kemper

    Ruby 1.9: flushing the output buffer preserves its encoding

    authored May 28, 2009

Mar 13, 2009

  1. Jeremy Kemper

    Introduce flush_output_buffer to append the buffer to the response bo…

    …dy then start a new buffer. Useful for pushing custom parts to the response body without disrupting template rendering.
    authored March 13, 2009

Jul 16, 2008

  1. Jeremy Kemper

    JavaScriptGenerator should only sets output_buffer for the duration o…

    …f the update block
    authored July 15, 2008

Jul 11, 2008

  1. Michael Koziarski

    Whitespace

    authored July 11, 2008

Jun 20, 2008

  1. Jeremy Kemper

    Check whether blocks are called from erb using a special __in_erb_tem…

    …plate variable visible in block binding.
    authored June 19, 2008

Jun 09, 2008

  1. Jeremy Kemper

    with_output_buffer returns the temporary buffer instead of the result…

    … of the block
    authored June 08, 2008
  2. Jeremy Kemper

    Use output_buffer reader and writer methods exclusively instead of hi…

    …tting the instance variable so others can override the methods.
    authored June 08, 2008
Something went wrong with that request. Please try again.