Validations + Urgent

H

Hemant Bhargava

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, :eek:n => [: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 :eek:n => [: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.
 
R

Robert Klemme

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, :eek:n => [: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 :eek:n => [: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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top