/ Published in: Rails
URL: http://github.com/rails/auto_complete/tree/master
Expand |
Embed | Plain Text
##controller #en algunos casos requiere un skip_before_filter para corregir un error de verify_authenticity skip_before_filter :verify_authenticity_token, :only => :auto_complete_for_user_apellido #auto_complete_for :modelo, :campo auto_complete_for :user, :apellido ## config/routes.rb map.resources :admin, :collection => {:auto_complete_for_user_apellido => :get} ##view <%= text_field_with_auto_complete :paciente, :nombre, {}, {:method => :get, :skip_style => true}%> #tambien se puede pasar un javascript <%= text_field_with_auto_complete :user, :apellido, {},:after_update_element => 'function(text, li){ alert(mensaje);}'%>
You need to login to post a comment.
