Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

ruby on rails

Question posted by: jhansi (Newbie) on March 28th, 2008 09:34 AM
hi


I have created a form with fields like first_name,last_name,date_of_birth,
land line---- std code, number
mobile ,address fields.....

Its working properly... but now I have to validate for

1. if i enter the land line number and mobile number then address field should be accepted?
2.If I enter the land line number without mobile number then also address field should be accepted?

3. If I enter the mobile number without land line then it should display some msg address field should be entered.....


land line number mobile number address
std code number

1. entered entered should be accept

2. entered --------------- should be accepted

3. ------------------- entered shouldn't be accepted..

please send me the code what i should include....waiting for the reply


thank you,,,,,,,,,,,,
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
eWish's Avatar
eWish
Moderator
699 Posts
April 1st, 2008
02:11 AM
#2

Re: ruby on rails
Please do not double post your questions. I have deleted your duplicate post. Also, before any code is going to be handed over you need to make an attempt first.

Moderator

Reply
Reply
Not the answer you were looking for? Post your question . . .
184,218 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Ruby / Rails Forum Contributors