This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Threw together by Richard Willis - badsyntax.co | |
*/ | |
var service = new google.maps.places.AutocompleteService(); | |
var geocoder = new google.maps.Geocoder(); | |
var $location = $('#locationField'); | |
$location.typeahead({ | |
source: function(query, process) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==README== | |
This is a gist of Advanced Rails Recipe #13, but with Paperclip and | |
Paperclip_polymorph plugins. You need the following plugins for this to work: | |
http://github.com/thoughtbot/paperclip/tree | |
http://github.com/heavysixer/paperclippolymorph/tree/master | |
It allows you to attach multiple files in one form, pretty sweet. Big ups to | |
http://gist.github.com/patrickberkeley for his excellent port of this recipe |