maptastic-form 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -3
- data/lib/maptastic-form.rb +1 -2
- data/lib/maptastic-form/version.rb +1 -1
- data/tasks/maptastic_tasks.rake +8 -0
- metadata +4 -3
data/README.markdown
CHANGED
@@ -8,13 +8,17 @@ Next, install Maptastic as a plugin:
|
|
8
8
|
|
9
9
|
script/plugin install git@github.com:MattHall/maptastic.git
|
10
10
|
|
11
|
-
|
11
|
+
...and run the rake task to install the required js file into your javascripts directory. You will probably need to include this in your layouts, too.
|
12
|
+
|
13
|
+
rake maptastic_form:install
|
14
|
+
|
15
|
+
You can alternatively install the gem:
|
12
16
|
|
13
17
|
gem install maptastic-form
|
14
18
|
|
15
|
-
|
19
|
+
Note if you're using the gem, then you'll need to copy the JS asset from:
|
16
20
|
|
17
|
-
|
21
|
+
https://github.com/MattHall/maptastic/blob/master/assets/javascripts/maptastic.js
|
18
22
|
|
19
23
|
You'll need to add the [Google Maps **V3**][3] script include in your page, above your semantic_form:
|
20
24
|
|
data/lib/maptastic-form.rb
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
require File.join(File.dirname(__FILE__), *%w[maptastic_form semantic_form_builder])
|
1
|
+
require File.join(File.dirname(__FILE__), *%w[maptastic-form semantic_form_builder])
|
3
2
|
Formtastic::SemanticFormHelper.builder = MaptasticForm::SemanticFormBuilder
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maptastic-form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Hall
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/maptastic-form/semantic_form_builder.rb
|
46
46
|
- lib/maptastic-form/version.rb
|
47
47
|
- lib/maptastic-form.rb
|
48
|
+
- tasks/maptastic_tasks.rake
|
48
49
|
- MIT-LICENSE
|
49
50
|
- README.markdown
|
50
51
|
has_rdoc: true
|