Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated README.md #1

Merged
merged 2 commits into from

2 participants

Chase Pursley Kristian Mandrup
Chase Pursley

Just fixed the links, made some comments about other necessary gems as well as init in coffeescript. First pull request ever, so here goes.

When I fully understand coffeescript, I'll try converting the main .js file. : )

cpursley added some commits
Chase Pursley cpursley Update README.md
Fixed links and added init coffeescript.
14ff1cd
Chase Pursley cpursley Update README.md a8defbb
Kristian Mandrup kristianmandrup merged commit bc7dfdc into from
Kristian Mandrup

Thanks :) Yeah, the js code could use some improvements...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 3, 2013
  1. Chase Pursley

    Update README.md

    cpursley authored
    Fixed links and added init coffeescript.
  2. Chase Pursley

    Update README.md

    cpursley authored
This page is out of date. Refresh to see the latest.
Showing with 21 additions and 4 deletions.
  1. +21 −4 README.md
25 README.md
View
@@ -2,21 +2,27 @@
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`;)
+You will also need:
+* gem 'jquery-rails'
+* gem 'jquery-ui-rails'
+
+And run `bundle install`;)
Packed and ready for use with the Asset pipeline :)
Add to javascript manifest file, fx `application.js`
```
+//= require jquery_ujs
+//= require jquery.ui.all
//= require gmaps-autocomplete
```
@@ -35,12 +41,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
Something went wrong with that request. Please try again.