Missing check for ActiveRecord::Relation and easying of view for index