ActionView::Template::Error (undefined method `method_defined?' for #<Array:0x0000001a2be188>):