Hi...
I use non modal attribute for companyinfo modal..
For that i have created like below

 attr_accessor :std_code

To validate that field i included the below code in to my companyinfo
modal.

validates_presence_of :std_code,:message => '*The std number is
required.'

it validates when i leave that field empty and shows the validation
error.
but even after filling the field it shows me error....
what would be the problem....
pls help
-- 
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