Displaying 1 result from an estimated 1 matches for "ville_name".
Did you mean:
file_name
2010 May 05
0
Auto_complete with has_one association
Hi,
Have an issue with the rails auto complete, it works fine but I don''t
know how to find the id element search in the textfield.
Here is what I''ve done:
<%= text_field_with_auto_complete :user, :ville_name, { :size => 15 },
{ :url => formatted_villes_path(:js), :method => :get, :param_name =>
''search'' } %>
Model:
class User < ActiveRecord::Base
attr_accessible :email, :ville_id, :newsletters, :role, :gender,
:first_name, :last_name, :birth_date
serialize :new...