Skip to content
Saul Felipe Ramirez edited this page Jul 26, 2015 · 1 revision

Welcome to the autocomplete_address_safe

For use this gem

first add in file "app/assets/javascript/appication.js" //= require autocomplete_address_safe

The view you have add the next code <%= field_complete %> //it is the autocomplete field

//there are the field that return data <%= text_field_tag 'route' %> <%= text_field_tag 'street_number' %> <%= text_field_tag 'administrative_area_level_1' %> <%= text_field_tag 'locality' %> <%= text_field_tag 'country' %> <%= text_field_tag 'postal_code' %> <%= text_field_tag 'lat' %> <%= text_field_tag 'long' %>

Clone this wiki locally