Sha256: 4402de761601a7c80e6108679dff2b65824dbdd8d9daee62df85cb6615f18127
Contents?: true
Size: 269 Bytes
Versions: 6
Compression:
Stored size: 269 Bytes
Contents
class PostForm include FunkyForm model Post attribute :id, Integer attribute :title, String attribute :body, String validates :title, :presence => true, :length => {:maximum => 30} validates :body, :presence => true, :length => {:within => 10..30} end
Version data entries
6 entries across 6 versions & 1 rubygems