hi
I want to get country code for phone numbers in my form.
I dont have database field for country_code .
So i created like below

attr_accessor :phone , :country_code

I have given for validation like below

validates_presence_of :country_code,
                         :message => '*The country code is required.'

but it doesnot show the above validation message ...
what i should do...
pls help me.
Thanks
-- 
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