The another problem i solved, because just have to render the view new <%= text_field_with_auto_complete :alergias_paciente, :alergia_nombre, { :size =30 }, { :url =alergia_path(:js), :method =:get, :param_name ''search''} %> alergia controller def index @alergias = Alergia.find(:all, :conditions =[''nombre LIKE ?'', "%#{params[:search]}%"]) end alergias_paciente model def alergia_nombre return alergia.nombre if alergia end map.resources :alergias_pacientes def alergia_nombre=(nombre) self.alergia = Alergia.find_by_nombre(nombre) unless nombre.blank? end def index @alergias = Alergia.find(:all, :conditions =[''nombre LIKE ?'', "%#{params[:search]}%"]) end routes rb map.resources :alergias_pacientes application.html.erb <%= javascript_include_tag :defaults %> js shows me alergias but it does not autocomplete the form the I remove formated because it tell me, was deprecated. in the other without the formated continues ok. as if it sought to apply the js or maybe is wrog the way i map or something like that what do you say? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.