search for: formatted_villes_path

Displaying 1 result from an estimated 1 matches for "formatted_villes_path".

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 :newsletters has_one :ville GENDERS = %w(Homme Femme)...