Permalink
Browse files

Update usage information

  • Loading branch information...
1 parent 21e9f5f commit df10bf3c02cc17944866b5f3ec5b7a136f93305b @ffmike committed Dec 22, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 generators/model_plus/USAGE
@@ -20,6 +20,9 @@ Description:
title:string+p => validates_presence_of :title
posted:boolean+ap => attr_accessible and
validates_inclusion_of :posted :in => [true, false]
+ rating:float+n => validates_numericality_of :rating
+ hits:integer+i => validates_numericality_of :hits, :only_integer => true
+ name:string+u => validates_uniqueness_of :name
This generates a model class in app/models, a unit test in test/unit,
a test fixture in test/fixtures/singular_name.yml, and a migration in

0 comments on commit df10bf3

Please sign in to comment.