这个问题的应对方法是使用一个用作数组容器但是没有扩展INOUT _ HOLDER的自定义类。
The workaround to this problem is to use a custom class that ACTS as a container for the array but does not extend INOUT_HOLDER.
常见的基本类型有string、integer和boolean,不过,后面将看到还能将元素映射为数组或自定义类。
Common primitive types are string, integer and Boolean; however, as you'll see a little further along in this article, you can also map an element to an array or a custom class.
Rails同时为许多其他对象提供了合理的blank ?定义:true, false,空数组及哈希表,数值类型,甚至是Object类本身。
Rails provides reasonable definitions of blank? For several other objects too: true, false, empty arrays or hashes, numeric types, and even the object class.
应用推荐