Project

General

Profile

Actions

Bug #13755

closed

Allow iterating over ActiveRecord CollectionProxy in safe mode rendering

Added by Marek Hulán about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When we use something like

<% @host.interfaces.each %>

I see an error like this

There was an error rendering the Preseed default finish template: The snippet 'preseed_networking_setup' threw an error: undefined method 'each' for Safemode::Jail (ActiveRecord::Associations::CollectionProxy)

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #13168: Rendering of kickstart_networking_setup fails: undefined method 'each' for Safemode::Jail (ActiveRecord::AssociationRelation)ClosedDominic Cleal01/13/2016Actions
Actions

Also available in: Atom PDF