diff --git a/app/controllers/measurements_controller.rb b/app/controllers/measurements_controller.rb index 84453b2..0523f84 100644 --- a/app/controllers/measurements_controller.rb +++ b/app/controllers/measurements_controller.rb @@ -77,6 +77,6 @@ class MeasurementsController < ApplicationController end def prepare_measurements - @measurements = @project.measurements.includes(:source) + @measurements = @project.measurements.includes(:source, :readouts) end end diff --git a/app/views/measurements/_index.html.erb b/app/views/measurements/_index.html.erb index 5d41ef6..dbef6f0 100644 --- a/app/views/measurements/_index.html.erb +++ b/app/views/measurements/_index.html.erb @@ -13,7 +13,10 @@ <% next if m.new_record? %>