6
Cuando trato de hacer esto en Sinatra,error se produce cuando intento "todos" método en el DataMapper
class Comment include DataMapper::Resource property :id, Serial property :body, Text property :created_at, DateTime end get '/show' do comment = Comment.all @comment.each do |comment| "#{comment.body}" end end
Devuelve este error,
ERROR: undefined method `bytesize' for #<Comment:0x13a2248>
¿Alguien podría apuntar a la dirección correcta ?
Gracias,