以下のような jbuilder テンプレートがあります。
json.flights @campaign.flights do |flight|
json.partial! 'flights/show', collection: @campaign.flights, as: :flight
json.has_delivered flight.has_delivered?
end
has_delivered をレンダリングしようとすると、パーシャルのレンダリング後にエラーがスローされます。
"can't convert String into Integer"
これをレンダリングする方法を知っている人はいますか?