Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Validations + Urgent
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hemant Bhargava  
View profile  
 More options Nov 13 2010, 3:45 am
Newsgroups: comp.lang.ruby
From: Hemant Bhargava <hemant.bharga...@gmail.com>
Date: Sat, 13 Nov 2010 03:45:27 -0500
Local: Sat, Nov 13 2010 3:45 am
Subject: Validations + Urgent
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.

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Klemme  
View profile  
 More options Nov 13 2010, 5:11 am
Newsgroups: comp.lang.ruby
From: Robert Klemme <shortcut...@googlemail.com>
Date: Sat, 13 Nov 2010 11:11:53 +0100
Local: Sat, Nov 13 2010 5:11 am
Subject: Re: Validations + Urgent
On 11/13/2010 09:45 AM, Hemant Bhargava wrote:

Ruby != Rails.  Please ask in the appropriate place.

Cheers

        robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »