Ruby on Rails Discussions
Validate some fields only on object creation, not update
rubyonrails-talk
Dan8
(Dan)
December 17, 2006, 1:50am
1
This should work.
validates_numericality_of :value, :on => :create
Related topics
Topic
Replies
Views
Activity
Validate some fields only on object creation, not update
rubyonrails-talk
0
131
December 17, 2006
validates_numercality_of with allow_nil.
rubyonrails-talk
10
293
June 19, 2011
Validate all model fields with validates_numericality_of
rubyonrails-talk
0
125
February 12, 2008
validates_numericality_of validates presence too
rubyonrails-talk
0
109
January 13, 2007
Validates numericality issue
rubyonrails-talk
9
114
September 2, 2010