From: Robert Klemme Date: 2010-11-13T19:15:19+09:00 Subject: Re: Validations + Urgent On 11/13/2010 09:45 AM, Hemant Bhargava wrote: > Hello Champs, > > I am saving/updating same object on different pages with some > validations. On first page, I save my object and on 2nd, 3rd, 4th pages > i update the same object. So at first page i am using > validates_inclusion_of :in => [] etc, and in second page(updating), i am > using validates_presence_of :abc, :on => [:update]. But while i update > on 3rd page also, i need some validations but i can not find out which > function should i use. > If i use validates_presence_of .. then this validations is reflecting on > save page, And if i use validates_presence_of :on => [:update] then that > is reflecting on update page. so i am in a bit of dilemma that what > should i use. > > Please help me in getting rid of this problem. > Thanks in advance. Ruby != Rails. Please ask in the appropriate place. Cheers robert