in reply to Re: Methods in template toolkit
in thread Methods in template toolkit

stvn: you were right! I was looking at the wrong method - I should have been looking at variant_measurements (a has_many relationship) that can return both a scalar and a list - adding _rs on the end forces it to return a scalar.

So, the working code is variant.variant_measurements_rs.find(variant.id, type_measurement.measurement_id).value

Cheers!