```ruby
require 'sinatra'
require 'config/environment'

class Overheard
  include DataMapper::Resource

  property :id, Serial
  property :body, Text
  property :created_at, DateTime
end

DataMapper.finalize
DataMapper.auto_upgrade!

get '/' do
  @overheards = Overheard.all
  erb :home
end

get '/overheards/new' do
  erb :new_overheard
end

post '/overheards' do
  overheard = Overheard.create(params["overheard"])
  redirect "/"
end
```

Add validation that Overheard must have a body
user
```ruby
require 'sinatra'
require 'config/environment'

class Overheard
  include DataMapper::Resource

  property :id, Serial
  property :body, Text, { :required => true }
  property :created_at, DateTime
end

DataMapper.finalize
DataMapper.auto_upgrade!

get '/' do
  @overheards = Overheard.all
  erb :home
end

get '/overheards/new' do
  erb :new_overheard
end

post '/overheards' do
  overheard = Overheard.create(params["overheard"])
  if overheard.saved?
    redirect "/"
  else
    erb :new_overheard
  end
end
```
assistant