+ haml :error
+end
+
+DataMapper.setup(:default, ENV['DATABASE_URL'] || 'mysql://root:root@localhost/grita')
+class Grito
+ include DataMapper::Resource
+ property :id, Serial
+ property :title, String, :required => true
+ property :text, Text, :required => true
+ property :created_at, DateTime
+
+ def geturl()
+ self.id.to_s(36)
+ end