diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 09:12:00 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 21:32:50 -0700 |
commit | 933697a5fc5f4c56c4fd7fbbd31b8973df9c1054 (patch) | |
tree | 44f55a5c801e94db8c3637c73dfc6db7f2c3350d /actionpack/lib/action_view/template_handlers | |
parent | da91450e687fe9faa7b0575062c2b2aacc261f68 (diff) | |
download | rails-933697a5fc5f4c56c4fd7fbbd31b8973df9c1054.tar.gz rails-933697a5fc5f4c56c4fd7fbbd31b8973df9c1054.tar.bz2 rails-933697a5fc5f4c56c4fd7fbbd31b8973df9c1054.zip |
Try replacing _erbout with @output_buffer
Diffstat (limited to 'actionpack/lib/action_view/template_handlers')
-rw-r--r-- | actionpack/lib/action_view/template_handlers/erb.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/template_handlers/erb.rb b/actionpack/lib/action_view/template_handlers/erb.rb index 15a9064461..d1416b89d1 100644 --- a/actionpack/lib/action_view/template_handlers/erb.rb +++ b/actionpack/lib/action_view/template_handlers/erb.rb @@ -43,13 +43,11 @@ module ActionView include Compilable def compile(template) - ::ERB.new(template.source, nil, @view.erb_trim_mode).src + ::ERB.new(template.source, nil, @view.erb_trim_mode, '@output_buffer').src end def cache_fragment(block, name = {}, options = nil) #:nodoc: - @view.fragment_for(block, name, options) do - eval(ActionView::Base.erb_variable, block.binding) - end + @view.fragment_for(block, name, options) { @view.output_buffer } end end end |