Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个错误是什么意思?这是生成它的代码行
apts[ndex] = truncate(results[ndex][:public_note].to_s,:length => 300)
results 是一个活动记录对象数组
我解决了这个问题。apts[ndex] 是一个 activerecord 对象,我想做的是将截断的值分配给 apts[ndex][:public_note]。
我不知道错误消息是什么意思,有人能解释一下吗?