Thank you for taking time to reply...

That is i have phone field into my table.
I get country code and std code and phone code from the form
after getting i append like below

1-011-5558

then i save into my phone field.

so i in my modal i have like below

attr_accessor :country_code,:std_code,phone_code


for this purpose i have to validate those three atrr_accessor fields..

i mean is phone = country_code+"-"+std_code+"-"+phone_code
Any Helps
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to