Skip to content

Instantly share code, notes, and snippets.

@mathildathompson
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save mathildathompson/9752331 to your computer and use it in GitHub Desktop.

Select an option

Save mathildathompson/9752331 to your computer and use it in GitHub Desktop.
##BOOTSTRAP
#Sass bootstrap when import into CSS ass a dot before css
#Also add the JS into the tree of application.js
##DEVELOPMENT
##TEST
##PRODUCTION
#Once you push it up to production the CSS and JS files are compressed, all of the white space and comments are taken out;
#200 OK
#304 nothing changed
#Vendor CSS and JS it does not compile;
#Prevent gems being pushed up that we do not need;
#You can group them together;
#Slug has all of your code and gems in it, has to load the slug from the hard drive;
#You can run production on your own machine, if you have a bug that only exists in the production environment;
gem geocoder
Geocoder.search '618 Harris Street Ultimo'
loc.methods
loc.address
loc.latitude
loc.longitude
[loc.latitude, loc.longitude]
Geocoder.search('Brokley Road Manly NSW)
rails g migration add_address_to_users address:text
Add it to the attr_accessible, after validation we want to Geocode;
geocoded_by :address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment