fixed bug in view.erb pointing to wrong field

Same bug that was crashing the database before, but this time in view.erb.