Validation is missing in generated crud
Bug #511027 reported by
Matt Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rootin Tootin |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When you create a generated crud app, there is no validation. It should do something to show you how to validate at least.
Changed in rester: | |
importance: | Low → Medium |
Changed in rester: | |
status: | Confirmed → Fix Committed |
Changed in rester: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Validation should be added via the gen scaffolding:
./gen create scaffold note name:string validates uniqueness_of:name
./gen create scaffold item price:decimal[10,2] validates presence_of:price
Other validations from rails: acceptance_ of associated confirmation_ of exclusion_ of inclusion_ of numericality_ of presence_ of uniqueness_ of
validates_
validates_
validates_
validates_each
validates_
validates_format_of
validates_
validates_length_of
validates_
validates_
validates_size_of
validates_