Last active
August 29, 2015 13:57
-
-
Save mathildathompson/9752331 to your computer and use it in GitHub Desktop.
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
| ##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