]>
git.r.bdr.sh - rbdr/grita/blob - grita.rb
5 require 'dm-timestamps'
8 set
:haml, :format => :html5
16 @grito = Grito
.first_or_create(:title => params
[:title], :text => params
[:text])
28 DataMapper
.setup(:default, ENV['DATABASE_URL'] || 'mysql://root:root@localhost/grita')
30 include DataMapper
::Resource
32 property
:title, String
, :required => true
33 property
:text, Text
, :required => true
34 property
:created_at, DateTime