Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

Fixed links and added init coffeescript.
  • Loading branch information...
commit 14ff1cd48f7894270435908b697e750a00d27243 1 parent 3ead9a7
@cpursley cpursley authored
Showing with 15 additions and 4 deletions.
  1. +15 −4 README.md
View
19 README.md
@@ -2,15 +2,15 @@
Extracted from [gmaps-autocomplete](https://github.com/rjshade/gmaps-autocomplete) and improved markedly and then packaged for use with Rails as an asset gem :)
-See it in action here: [rjshade.github.com/gmaps-autocomplete/](http://rjshade.github.com/gmaps-autocomplete/)
+See it in action here: [http://rjshade.com/projects/gmaps-autocomplete/](http://rjshade.com/projects/gmaps-autocomplete/)
-Some more explanation here: [rjshade.com/2012/03/30/Google-Maps-autocomplete-with-jQuery-UI](/[http://www.rjshade.com/2012/03/30/Google-Maps-autocomplete-with-jQuery-UI/)
+Some more explanation here: [https://github.com/rjshade/gmaps-autocomplete](https://github.com/rjshade/gmaps-autocomplete)
## Install
-`gem 'gmaps-autocomplete-rails'
+gem 'gmaps-autocomplete-rails'
-And run `bundle`;)
+And run `bundle install`;)
Packed and ready for use with the Asset pipeline :)
@@ -35,12 +35,23 @@ Note also that the autocomplete script depends on jQuery 1.6+.
## Initialize
+*application.js*
+
```javascript
$(document).ready(function() {
GmapsAutoComplete.init();
GmapsAutoComplete.autoCompleteInit();
});
```
+or coffeescript
+
+*yourmodel.js.coffee*
+
+```
+$ ->
+ GmapsAutoComplete.init()
+ GmapsAutoComplete.autoCompleteInit()
+```
### Configuration options
Please sign in to comment.
Something went wrong with that request. Please try again.