rails3-jquery-autocomplete 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +6 -2
- data/Rakefile +1 -1
- data/lib/generators/autocomplete_generator.rb +1 -1
- data/rails3-jquery-autocomplete.gemspec +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -19,15 +19,19 @@ I'd recommend you understand what's happening with those 3 tools before attempti
|
|
19
19
|
|
20
20
|
Include the gem on your Gemfile
|
21
21
|
|
22
|
-
gem 'rails3-jquery-autocomplete', '>= 0.1.
|
22
|
+
gem 'rails3-jquery-autocomplete', '>= 0.1.1', :require => 'autocomplete'
|
23
23
|
|
24
24
|
Install it
|
25
25
|
|
26
26
|
bundle install
|
27
27
|
|
28
|
-
|
28
|
+
Run the generator
|
29
29
|
|
30
30
|
rails generate autocomplete
|
31
|
+
|
32
|
+
And include autocomplete-rails.js on your layouts
|
33
|
+
|
34
|
+
javascript_include_tag "autocomplete-rails.js"
|
31
35
|
|
32
36
|
## Usage
|
33
37
|
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('rails3-jquery-autocomplete', '0.1.
|
5
|
+
Echoe.new('rails3-jquery-autocomplete', '0.1.1') do |p|
|
6
6
|
p.description = "Use jQuery's autocomplete plugin with Rails 3."
|
7
7
|
p.url = "http://github.com/crowdint/rails3-jquery-autocomplete"
|
8
8
|
p.author = "David Padilla"
|
@@ -3,7 +3,7 @@ require 'rails/generators'
|
|
3
3
|
class AutocompleteGenerator < Rails::Generators::Base
|
4
4
|
def install
|
5
5
|
# Copy the unobtrusive JS file
|
6
|
-
copy_file('autocomplete-rails.js', 'public/autocomplete-rails.js')
|
6
|
+
copy_file('autocomplete-rails.js', 'public/javascripts/autocomplete-rails.js')
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.source_root
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails3-jquery-autocomplete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Padilla
|