@model_ids was wrongly being generated as @_ids.
Need to work on the whitespace around erb tags