When I try to do this in Sinatra,
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
It returns this error,
ERROR: undefined method `bytesize' for #
Could anyone point me to the right direction?
Thanks,