Forum: Ruby on Rails HELP ON MY VALIDATION

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3083ca8f0496edaac2fa10c20630d0bc?d=identicon&s=25 Newb Newb (newb)
on 2009-05-30 07:38
Hi..
I use text field with auto complete for my authority_name field which
will be fetched from userinfo table and the field name is login.

Authority Name ------------
<%=text_field_with_auto_complete :userinfo, :login%>

this authority name will be stored in company table.
what my problem is i want to validate the above auto complete field...
i tried the validates presence of it gets me error.
i could not use as   <%=f.text_field_with_auto_complete :userinfo,
:login%>
what is the reason..pls guide me...on the validation


Thanks
This topic is locked and can not be replied to.