Skip to content

Instantly share code, notes, and snippets.

View zkwentz's full-sized avatar
😅
Working

Zach Wentz zkwentz

😅
Working
View GitHub Profile
@zkwentz
zkwentz / gist:5854534
Last active December 18, 2015 22:28 — forked from badsyntax/gist:4330899
Update to use TagsManager
/**
* 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) {
==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