Skip to content
Commits on Feb 21, 2012
  1. @amatsuda @tenderlove
Commits on Sep 1, 2011
  1. @tomstuart

    Never return stored content from content_for when a block is given

    tomstuart committed Sep 1, 2011
    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.
Commits on May 10, 2011
  1. @josevalim
Commits on May 1, 2011
  1. @josevalim
Commits on Apr 16, 2011
  1. @josevalim
  2. @josevalim

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

    josevalim committed Apr 16, 2011
    …, inside a body, so you can stream.
Commits on Apr 15, 2011
  1. @josevalim
Commits on Apr 13, 2011
  1. @fxn
Commits on Apr 3, 2011
  1. @amatsuda

    s/ERb/ERB/g

    amatsuda committed Apr 3, 2011
    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
Commits on Nov 2, 2010
  1. @spastorino
  2. @jeffkreeftmeijer @spastorino

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

    jeffkreeftmeijer committed with spastorino Oct 11, 2010
    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>
Commits on Aug 30, 2010
  1. @josevalim

    Remove NonConcattingString.

    josevalim committed Aug 29, 2010
Commits on Aug 26, 2010
  1. @jaimeiniesta @fxn

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

    jaimeiniesta committed with fxn Aug 26, 2010
    …aking it on the content_for explanation
Commits on Jul 25, 2010
  1. @sespindola @josevalim

    Fixed output_buffer encoding problem [#5179]

    sespindola committed with josevalim Jul 25, 2010
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 28, 2010
  1. @jeremy
Commits on Jun 16, 2010
  1. @rizwanreza
Commits on May 15, 2010
  1. @jeroenvandijk
Commits on Mar 28, 2010
  1. @fxn
Commits on Mar 17, 2010
  1. @wycats

    Eliminate warnings for AM on 1.8

    wycats committed Mar 16, 2010
Commits on Mar 16, 2010
  1. @jeremy
Commits on Mar 15, 2010
  1. Add deprecation notices for <% %>.

    Carlhuda committed Mar 15, 2010
      * 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.
  2. @fxn @jeremy

    with_output_buffer cannot assume there's an output_buffer

    fxn committed with jeremy Mar 15, 2010
    [#4182 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Mar 10, 2010
  1. @wycats

    Deprecate block_called_from_erb? pending a solution for getting it in…

    Carlhuda committed with wycats Mar 9, 2010
    …to apps
Commits on Feb 1, 2010
  1. @spastorino

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

    spastorino committed with Yehuda Katz Feb 1, 2010
    …pport::SafeBuffer
    
    Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
Commits on Oct 7, 2009
  1. @NZKoz

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

    NZKoz committed Oct 8, 2009
      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.
Commits on Jun 21, 2009
  1. @darragh @lifo

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

    darragh committed with lifo Jun 21, 2009
    …ent [#1311 state:resolved]
    
    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Commits on Jun 18, 2009
  1. Extract the layout proc into a method, and write documentation explai…

    Yehuda Katz + Carl Lerche committed Jun 17, 2009
    …ning what the proc does in various cases.
  2. Drive the final stake through @content_for_*'s heart!

    Yehuda Katz + Carl Lerche committed Jun 17, 2009
Commits on May 28, 2009
  1. @jeremy
Commits on Mar 13, 2009
  1. @jeremy

    Introduce flush_output_buffer to append the buffer to the response bo…

    jeremy committed Mar 13, 2009
    …dy then start a new buffer. Useful for pushing custom parts to the response body without disrupting template rendering.
Commits on Jul 16, 2008
  1. @jeremy

    JavaScriptGenerator should only sets output_buffer for the duration o…

    jeremy committed Jul 15, 2008
    …f the update block
Commits on Jul 11, 2008
  1. @NZKoz

    Whitespace

    NZKoz committed Jul 11, 2008
Commits on Jun 20, 2008
  1. @jeremy

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

    jeremy committed Jun 19, 2008
    …plate variable visible in block binding.
Commits on Jun 9, 2008
  1. @jeremy
  2. @jeremy

    Use output_buffer reader and writer methods exclusively instead of hi…

    jeremy committed Jun 8, 2008
    …tting the instance variable so others can override the methods.
Something went wrong with that request. Please try again.