diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index 02c4e9fac08c1..3aeebc67777d8 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -218,7 +218,7 @@ def render_partial_collection(options = {}) #:nodoc: ActionController::RecordIdentifier.partial_path(object, controller.class.controller_path) template = _pick_partial_template(_partial_path) local_assigns[template.counter_name] = index - local_assigns["#{as.to_s}_counter".to_sym] = local_assigns[template.counter_name] + local_assigns["#{as.to_s}_counter".to_sym] = local_assigns[template.counter_name] if as result = template.render_partial(self, object, local_assigns.dup, as) index += 1 result