当我尝试在 Sinatra 中执行此操作时,
班级评论 包括 DataMapper::Resource 属性:id,序列号 属性:正文,文本 属性:created_at,日期时间 结尾 得到 '/show' 做 评论 = 评论.all @comment.each 做 |comment| “#{comment.body}” 结尾 结尾
它返回此错误,
ERROR: undefined method `bytesize' for #<Comment:0x13a2248>
谁能指出我正确的方向?
谢谢,