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

Version Path
funky_form-0.2.1 test/dummy/app/forms/post_form.rb
funky_form-0.2.0 test/dummy/app/forms/post_form.rb
funky_form-0.1.3 test/dummy/app/forms/post_form.rb
funky_form-0.1.2 test/dummy/app/forms/post_form.rb
funky_form-0.1.1 test/dummy/app/forms/post_form.rb
funky_form-0.1.0 test/dummy/app/forms/post_form.rb