This project is archived and is in readonly mode.

#5179 ✓resolved
Vincent

link_to_function and fields_for inside block - empty array in with_output_buffer error

Reported by Vincent | July 22nd, 2010 @ 05:56 AM | in 3.0.2

In Rails 3 beta 4:

def add_link(form_builder)
  link_to_function 'add' do |page|
    form_builder.fields_for :task, Task.new do |f|
      ...
    end
  end
end

causes

undefined method `encoding' for []:Array
actionpack (3.0.0.beta4) lib/action_view/helpers/capture_helper.rb:171:in `with_output_buffer'

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>