gmaps4rails 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +6 -386
- data/.gitignore +0 -17
- data/.travis.yml +0 -10
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -182
- data/Guardfile +0 -24
- data/MIT-LICENSE +0 -20
- data/README.rdoc +0 -135
- data/Rakefile +0 -4
- data/app/assets/javascripts/gmaps4rails/gmaps4rails.base.js.coffee +0 -444
- data/app/assets/javascripts/gmaps4rails/gmaps4rails.bing.js.coffee +0 -174
- data/app/assets/javascripts/gmaps4rails/gmaps4rails.googlemaps.js.coffee +0 -339
- data/app/assets/javascripts/gmaps4rails/gmaps4rails.mapquest.js.coffee +0 -145
- data/app/assets/javascripts/gmaps4rails/gmaps4rails.openlayers.js.coffee +0 -261
- data/app/views/gmaps4rails/_gmaps4rails.html.erb +0 -20
- data/gmaps4rails.gemspec +0 -39
- data/lib/generators/gmaps4rails/install_generator.rb +0 -48
- data/lib/generators/templates/README +0 -2
- data/lib/gmaps4rails.rb +0 -26
- data/lib/gmaps4rails/acts_as_gmappable.rb +0 -54
- data/lib/gmaps4rails/api_wrappers/base_net_methods.rb +0 -40
- data/lib/gmaps4rails/api_wrappers/direction.rb +0 -87
- data/lib/gmaps4rails/api_wrappers/geocoder.rb +0 -54
- data/lib/gmaps4rails/api_wrappers/places.rb +0 -74
- data/lib/gmaps4rails/base.rb +0 -119
- data/lib/gmaps4rails/extensions/enumerable.rb +0 -14
- data/lib/gmaps4rails/extensions/hash.rb +0 -9
- data/lib/gmaps4rails/helper/gmaps4rails_helper.rb +0 -33
- data/lib/gmaps4rails/js_builder.rb +0 -157
- data/lib/gmaps4rails/json_builder.rb +0 -140
- data/lib/gmaps4rails/model_handler.rb +0 -101
- data/lib/gmaps4rails/version.rb +0 -3
- data/lib/gmaps4rails/view_helper.rb +0 -175
- data/lib/tasks/gmaps4rails_tasks.rake +0 -4
- data/lib/tasks/jasmine.rake +0 -8
- data/public/javascripts/gmaps4rails/gmaps4rails.base.js +0 -464
- data/public/javascripts/gmaps4rails/gmaps4rails.bing.js +0 -226
- data/public/javascripts/gmaps4rails/gmaps4rails.googlemaps.js +0 -430
- data/public/javascripts/gmaps4rails/gmaps4rails.mapquest.js +0 -178
- data/public/javascripts/gmaps4rails/gmaps4rails.openlayers.js +0 -265
- data/public/stylesheets/gmaps4rails.css +0 -24
- data/spec/dummy/.gitignore +0 -2
- data/spec/dummy/.rspec +0 -1
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/assets/stylesheets/gmaps4rails.css +0 -24
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/controllers/users_controller.rb +0 -101
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/place.rb +0 -16
- data/spec/dummy/app/models/user.rb +0 -12
- data/spec/dummy/app/views/layouts/application.html.erb +0 -16
- data/spec/dummy/app/views/users/_form.html.erb +0 -37
- data/spec/dummy/app/views/users/_map.html.erb +0 -5
- data/spec/dummy/app/views/users/edit.html.erb +0 -6
- data/spec/dummy/app/views/users/index.html.erb +0 -260
- data/spec/dummy/app/views/users/new.html.erb +0 -5
- data/spec/dummy/app/views/users/show.html.erb +0 -30
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -62
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/gmaps4rails.rb +0 -1
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -60
- data/spec/dummy/db/migrate/20120408170155_create_users.rb +0 -16
- data/spec/dummy/db/schema.rb +0 -29
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/Player.js +0 -22
- data/spec/dummy/public/javascripts/Song.js +0 -7
- data/spec/dummy/public/logo.png +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/factories/place_factory.rb +0 -16
- data/spec/factories/user_factory.rb +0 -23
- data/spec/fixtures/google_direction_valid.json +0 -65
- data/spec/fixtures/google_geocoding_toulon_france.json +0 -58
- data/spec/fixtures/google_places_valid.json +0 -45
- data/spec/fixtures/google_wrong_geocoding.json +0 -4
- data/spec/javascripts/basic_methods_spec.js +0 -103
- data/spec/javascripts/helpers/.gitkeep +0 -0
- data/spec/javascripts/helpers/SpecHelper.js +0 -87
- data/spec/javascripts/map_spec.js +0 -49
- data/spec/javascripts/markers_methods_spec.js +0 -368
- data/spec/javascripts/mocks_spec.js +0 -27
- data/spec/javascripts/support/jasmine.yml +0 -10
- data/spec/javascripts/support/jasmine_config.rb +0 -23
- data/spec/javascripts/support/jasmine_runner.rb +0 -20
- data/spec/launchers/all_but_requests.rb +0 -0
- data/spec/launchers/all_specs.rb +0 -0
- data/spec/launchers/requests.rb +0 -0
- data/spec/lib/base_spec.rb +0 -59
- data/spec/lib/direction_spec.rb +0 -53
- data/spec/lib/geocoder_spec.rb +0 -46
- data/spec/lib/js_builder_spec.rb +0 -139
- data/spec/lib/json_builder_spec.rb +0 -232
- data/spec/lib/places_spec.rb +0 -25
- data/spec/models/place_spec.rb +0 -35
- data/spec/models/user_spec.rb +0 -187
- data/spec/spec_helper.rb +0 -44
- data/spec/support/geocoding.rb +0 -41
- data/spec/support/matchers.rb +0 -73
@@ -1,16 +0,0 @@
|
|
1
|
-
if RUBY_VERSION == "1.9.3"
|
2
|
-
|
3
|
-
require 'mongoid'
|
4
|
-
|
5
|
-
class Place
|
6
|
-
include Mongoid::Document
|
7
|
-
include Gmaps4rails::ActsAsGmappable
|
8
|
-
|
9
|
-
acts_as_gmappable :address => :address, :position => :pos
|
10
|
-
|
11
|
-
field :pos, :type => Array
|
12
|
-
field :address, :type => String
|
13
|
-
field :gmaps, :type => Boolean
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", :media => "all" %>
|
6
|
-
<%= javascript_include_tag "application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
<%= yield :head %>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
|
12
|
-
<%= yield %>
|
13
|
-
|
14
|
-
<%= yield :scripts %>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<%= form_for(@user) do |f| %>
|
2
|
-
<% if @user.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% @user.errors.full_messages.each do |msg| %>
|
8
|
-
<li><%= msg %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= f.label :name %><br />
|
16
|
-
<%= f.text_field :name %>
|
17
|
-
</div>
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label :address %><br />
|
20
|
-
<%= f.text_field :address %>
|
21
|
-
</div>
|
22
|
-
<div class="field">
|
23
|
-
<%= f.label :latitude %><br />
|
24
|
-
<%= f.text_field :latitude %>
|
25
|
-
</div>
|
26
|
-
<div class="field">
|
27
|
-
<%= f.label :longitude %><br />
|
28
|
-
<%= f.text_field :longitude %>
|
29
|
-
</div>
|
30
|
-
<div class="field">
|
31
|
-
<%= f.label :gmaps %><br />
|
32
|
-
<%= f.check_box :gmaps %>
|
33
|
-
</div>
|
34
|
-
<div class="actions">
|
35
|
-
<%= f.submit %>
|
36
|
-
</div>
|
37
|
-
<% end %>
|
@@ -1,260 +0,0 @@
|
|
1
|
-
<h1>Listing users</h1>
|
2
|
-
|
3
|
-
<table>
|
4
|
-
<tr>
|
5
|
-
<th>Name</th>
|
6
|
-
<th>Address</th>
|
7
|
-
<th>Latitude</th>
|
8
|
-
<th>Longitude</th>
|
9
|
-
<th>Gmaps</th>
|
10
|
-
<th></th>
|
11
|
-
<th></th>
|
12
|
-
<th></th>
|
13
|
-
</tr>
|
14
|
-
<% @users.each_with_index do |user, index| %>
|
15
|
-
<% break if index == 5 %>
|
16
|
-
<tr>
|
17
|
-
<td><%= user.name %></td>
|
18
|
-
<td><%= user.address %></td>
|
19
|
-
<td><%= user.latitude %></td>
|
20
|
-
<td><%= user.longitude %></td>
|
21
|
-
<td><%= user.gmaps %></td>
|
22
|
-
<td><%= link_to 'Show', user %></td>
|
23
|
-
<td><%= link_to 'Edit', edit_user_path(user) %></td>
|
24
|
-
<td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
|
25
|
-
</tr>
|
26
|
-
<% end %>
|
27
|
-
</table>
|
28
|
-
|
29
|
-
<br />
|
30
|
-
|
31
|
-
<!-- <div class="map_container">
|
32
|
-
<div id="map" class="gmaps4rails_map"></div>
|
33
|
-
</div> -->
|
34
|
-
<script type="text/javascript" charset="utf-8">
|
35
|
-
//window.onload =alert('ok');
|
36
|
-
|
37
|
-
//
|
38
|
-
// Gmaps.map = new Gmaps4RailsGoogle();
|
39
|
-
// function load_map() {
|
40
|
-
// Gmaps.map.initialize();
|
41
|
-
// Gmaps.map.callback();
|
42
|
-
// };
|
43
|
-
// window.onload = function() { Gmaps.loadMaps(); };
|
44
|
-
//
|
45
|
-
//Gmaps.map.map_options.class = 'gmaps4railsmap';
|
46
|
-
</script>
|
47
|
-
|
48
|
-
|
49
|
-
<%= link_to 'New User', new_user_path %>
|
50
|
-
|
51
|
-
<%#= gmaps({"markers" => {"data" => @json },
|
52
|
-
"map_options" => { :provider => "openlayers"}}) %>
|
53
|
-
<%#= gmaps({}) %>
|
54
|
-
|
55
|
-
|
56
|
-
<%#= gmaps({
|
57
|
-
:map_options => {
|
58
|
-
# :auto_adjust => false,
|
59
|
-
:center_on_user => true,
|
60
|
-
:zoom => 3,
|
61
|
-
:raw => '{ scrollwheel: false }',
|
62
|
-
:center_latitude => 41.574361,
|
63
|
-
:center_longitude => -72.949219,
|
64
|
-
:libraries => ["places"] }
|
65
|
-
}) %>
|
66
|
-
<%#= gmaps( :map_options => {:auto_adjust=>true, :auto_zoom=>true}, :markers => {:data=>"[{\"lat\":43.5368851,\"lng\":-79.6849913}]"}, :circles => {:data=>"[{\"lng\":-79.6849913,\"lat\":43.5368851,\"radius\":5000.0,\"strokeColor\":\"#DD3300\"}]", :options=>{:fillOpacity=>0.35}} )
|
67
|
-
%>
|
68
|
-
<%#= gmaps4rails(@json) %>
|
69
|
-
<%#= gmaps(:markers => {:data => @json}, :map_options => { :detect_location => true, :auto_zoom => false, :zoom => 15, :auto_adjust => true, :center_on_user => true}) %>
|
70
|
-
<%#= gmaps(:map_options => { :auto_adjust => true },
|
71
|
-
:markers => {
|
72
|
-
:data => @json,
|
73
|
-
:options => {:do_clustering => true}
|
74
|
-
}) %>
|
75
|
-
|
76
|
-
<%#= gmaps("markers" => { "data" => @json, "options" => {
|
77
|
-
"picture" => "/logo.png",
|
78
|
-
"width" => 30, "marker_length" => 32 } }) %>
|
79
|
-
|
80
|
-
|
81
|
-
<%#= gmaps( {:map_options => { :disableDefaultUI => true, :auto_adjust => true, :center_on_user => true, :detect_location => true, :center_latitude => 41.574361,
|
82
|
-
:center_longitude => -72.949219 }}) %>
|
83
|
-
<%#= gmaps(:map_options => {:type => "ROADMAP"},
|
84
|
-
:markers => {:data => @json,
|
85
|
-
:options => {"list_container" => "markers_list" }
|
86
|
-
})%>
|
87
|
-
<div id="markers_list"></div>
|
88
|
-
|
89
|
-
<%= render :partial => 'map', :locals => {:json => @json} %>
|
90
|
-
|
91
|
-
<%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, "custom_infowindow_class" => "yellow", :raw => "{ flat: true, draggable: true}" } },
|
92
|
-
:polygons => {:data => '[[
|
93
|
-
{"lng": 5.190262, "lat": 25.774252},
|
94
|
-
{"lng": 7.118292, "lat": 45.466465},
|
95
|
-
{"lng": 4.75737, "lat": 53.321384}
|
96
|
-
]]'},
|
97
|
-
"circles" => { "data" => '[
|
98
|
-
{"lng": -122.214897, "lat": 37.772323, "radius": 1000000},
|
99
|
-
{"lng": 122.214897, "lat": 37.772323, "radius": 1000000, "strokeColor": "#FF0000"}
|
100
|
-
]'},
|
101
|
-
"polylines" => { "data" => '[[
|
102
|
-
{"lng": -122.214897, "lat": 37.772323},
|
103
|
-
{"lng": -157.821856, "lat": 21.291982},
|
104
|
-
{"lng": 178.431, "lat": -18.142599},
|
105
|
-
{"lng": 153.027892, "lat": -27.46758}
|
106
|
-
],
|
107
|
-
[
|
108
|
-
{"lng": -120.214897, "lat": 30.772323, "strokeColor": "#000", "strokeWeight" : 2 },
|
109
|
-
{"lng": -10.821856, "lat": 50.291982}
|
110
|
-
]]' },
|
111
|
-
:map_options => {:auto_adjust => true, :auto_zoom => false, :zoom => 3, :center_on_user => false, :detect_location => false, :raw => "{styles: pinkParksStyles}" },
|
112
|
-
:last_map => true) %>
|
113
|
-
<%#= gmaps(:markers => {:data => '[{ "lng": "5.9311119", "lat": "43.1251606"} ,{ "lng": "2.3509871", "lat": "48.8566667" },{ "lng": "0", "lat": "0" } ]', "options" => {"do_clustering" => true, "draggable" => true } },
|
114
|
-
:map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "ed" },
|
115
|
-
:scripts => "api",
|
116
|
-
:last_map => false ) %>
|
117
|
-
<%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } },
|
118
|
-
:map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :provider => "openlayers", :id => "joe" },
|
119
|
-
:scripts => "api",
|
120
|
-
:last_map => false)
|
121
|
-
%>
|
122
|
-
<%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } },
|
123
|
-
:map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe3", :provider => "mapquest", :provider_key => MAPQUEST_KEY },
|
124
|
-
:scripts => "api",
|
125
|
-
:last_map => false ) %>
|
126
|
-
<%#= gmaps(:markers => {"data" => @json, :options => {:do_clustering => false, :draggable => true } },
|
127
|
-
:map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe2", :provider => "bing", :provider_key => BING_KEY },
|
128
|
-
:scripts => "api" ) %>
|
129
|
-
<%#= gmaps({
|
130
|
-
"map_options" => { "auto_adjust" => false, "zoom" => 0, "libraries" => ["places"] },
|
131
|
-
"markers" => { "data" => @json }
|
132
|
-
}, true, true) %>
|
133
|
-
<%# @circles_json = '[ {"lng": -122.214897, "lat": 37.772323, "radius": 1000000} ]' %>
|
134
|
-
<%#= gmaps(
|
135
|
-
"circles" => { "data" => @circles_json } , "map_options" => { "auto_adjust" => true }
|
136
|
-
) %>
|
137
|
-
<button type="button" onclick="Gmaps.map.replaceMarkers(builder2)">Replace Markers</button>
|
138
|
-
<button type="button" onclick="Gmaps.map.addMarkers(builder2)">Add Markers</button>
|
139
|
-
<button type="button" onclick="Gmaps.map.addMarkers(builder3)">Add Markers bis</button>
|
140
|
-
|
141
|
-
<% content_for :scripts do -%>
|
142
|
-
<script type="text/javascript" charset="utf-8">
|
143
|
-
|
144
|
-
// Gmaps.map.jsTemplate = function(marker_container){
|
145
|
-
// return "ok";
|
146
|
-
// }
|
147
|
-
|
148
|
-
// function HomeControl(controlDiv, map) {
|
149
|
-
// var chicago = new google.maps.LatLng(41.850033, -87.6500523);
|
150
|
-
//
|
151
|
-
// // Set CSS styles for the DIV containing the control
|
152
|
-
// // Setting padding to 5 px will offset the control
|
153
|
-
// // from the edge of the map.
|
154
|
-
// controlDiv.style.padding = '5px';
|
155
|
-
//
|
156
|
-
// // Set CSS for the control border.
|
157
|
-
// var controlUI = document.createElement('DIV');
|
158
|
-
// controlUI.style.backgroundColor = 'white';
|
159
|
-
// controlUI.style.borderStyle = 'solid';
|
160
|
-
// controlUI.style.borderWidth = '2px';
|
161
|
-
// controlUI.style.cursor = 'pointer';
|
162
|
-
// controlUI.style.textAlign = 'center';
|
163
|
-
// controlUI.title = 'Click to set the map to Home';
|
164
|
-
// controlDiv.appendChild(controlUI);
|
165
|
-
//
|
166
|
-
// // Set CSS for the control interior.
|
167
|
-
// var controlText = document.createElement('DIV');
|
168
|
-
// controlText.style.fontFamily = 'Arial,sans-serif';
|
169
|
-
// controlText.style.fontSize = '12px';
|
170
|
-
// controlText.style.paddingLeft = '4px';
|
171
|
-
// controlText.style.paddingRight = '4px';
|
172
|
-
// controlText.innerHTML = 'Home';
|
173
|
-
// controlUI.appendChild(controlText);
|
174
|
-
//
|
175
|
-
// // Setup the click event listeners: simply set the map to Chicago.
|
176
|
-
// google.maps.event.addDomListener(controlUI, 'click', function() {
|
177
|
-
// map.setCenter(chicago)
|
178
|
-
// });
|
179
|
-
// }
|
180
|
-
//
|
181
|
-
// Gmaps.map.callback = function(){
|
182
|
-
// // Create the DIV to hold the control and call the HomeControl() constructor
|
183
|
-
// // passing in this DIV.
|
184
|
-
// // var homeControlDiv = document.createElement('DIV');
|
185
|
-
// // var homeControl = new HomeControl(homeControlDiv, Gmaps.map.map);
|
186
|
-
// //
|
187
|
-
// // homeControlDiv.index = 1;
|
188
|
-
// // Gmaps.map.map.controls[google.maps.ControlPosition.TOP_RIGHT].push(homeControlDiv);
|
189
|
-
// //Gmaps.map.serviceObject.setZoom(1);
|
190
|
-
// };
|
191
|
-
//
|
192
|
-
//
|
193
|
-
var styles = [
|
194
|
-
{
|
195
|
-
featureType: "all",
|
196
|
-
stylers: [
|
197
|
-
{ "hue": "#ff1a00" }
|
198
|
-
]
|
199
|
-
}
|
200
|
-
];
|
201
|
-
var pinkParksStyles = [
|
202
|
-
{
|
203
|
-
featureType: "all",
|
204
|
-
stylers: [
|
205
|
-
{ saturation: -80 }
|
206
|
-
]
|
207
|
-
},
|
208
|
-
{
|
209
|
-
featureType: "poi.park",
|
210
|
-
stylers: [
|
211
|
-
{ hue: "#ff0023" },
|
212
|
-
{ saturation: 40 }
|
213
|
-
]
|
214
|
-
}
|
215
|
-
];
|
216
|
-
//
|
217
|
-
//
|
218
|
-
|
219
|
-
Gmaps.map.infobox = function(boxText) {
|
220
|
-
return {
|
221
|
-
content: boxText
|
222
|
-
,disableAutoPan: false
|
223
|
-
,maxWidth: 0
|
224
|
-
,pixelOffset: new google.maps.Size(-140, 0)
|
225
|
-
,zIndex: null
|
226
|
-
,boxStyle: {
|
227
|
-
background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.5/examples/tipbox.gif') no-repeat"
|
228
|
-
,opacity: 0.75
|
229
|
-
,width: "280px"
|
230
|
-
}
|
231
|
-
,closeBoxMargin: "10px 2px 2px 2px"
|
232
|
-
,closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif"
|
233
|
-
,infoBoxClearance: new google.maps.Size(1, 1)
|
234
|
-
,isHidden: false
|
235
|
-
,pane: "floatPane"
|
236
|
-
,enableEventPropagation: false
|
237
|
-
}};
|
238
|
-
|
239
|
-
</script>
|
240
|
-
<script type="text/javascript" charset="utf-8">
|
241
|
-
|
242
|
-
var builder2 =
|
243
|
-
[
|
244
|
-
{
|
245
|
-
"lng": "5.9311119",
|
246
|
-
"lat": "42.1251606",
|
247
|
-
} ,{
|
248
|
-
"lng": "32.3509871",
|
249
|
-
"lat": "47.8566667",
|
250
|
-
}
|
251
|
-
];
|
252
|
-
var builder3 = [{
|
253
|
-
"lng": "6.9311119",
|
254
|
-
"lat": "49.1251606",
|
255
|
-
} ,{
|
256
|
-
"lng": "39.3509871",
|
257
|
-
"lat": "40.8566667",
|
258
|
-
} ];
|
259
|
-
</script>
|
260
|
-
<% end -%>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<b>Name:</b>
|
5
|
-
<%= @user.name %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<b>Address:</b>
|
10
|
-
<%= @user.address %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<b>Latitude:</b>
|
15
|
-
<%= @user.latitude %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<b>Longitude:</b>
|
20
|
-
<%= @user.longitude %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<b>Gmaps:</b>
|
25
|
-
<%= @user.gmaps %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
|
29
|
-
<%= link_to 'Edit', edit_user_path(@user) %> |
|
30
|
-
<%= link_to 'Back', users_path %>
|
data/spec/dummy/config.ru
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
# Pick the frameworks you want:
|
4
|
-
require "active_record/railtie"
|
5
|
-
require "action_controller/railtie"
|
6
|
-
require "action_mailer/railtie"
|
7
|
-
require "active_resource/railtie"
|
8
|
-
require "sprockets/railtie"
|
9
|
-
# require "rails/test_unit/railtie"
|
10
|
-
|
11
|
-
Bundler.require
|
12
|
-
require "gmaps4rails"
|
13
|
-
|
14
|
-
module Dummy
|
15
|
-
class Application < Rails::Application
|
16
|
-
# Settings in config/environments/* take precedence over those specified here.
|
17
|
-
# Application configuration should go into files in config/initializers
|
18
|
-
# -- all .rb files in that directory are automatically loaded.
|
19
|
-
|
20
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
21
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
22
|
-
|
23
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
24
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
25
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
26
|
-
|
27
|
-
# Activate observers that should always be running.
|
28
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
29
|
-
|
30
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
31
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
32
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
33
|
-
|
34
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
35
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
36
|
-
# config.i18n.default_locale = :de
|
37
|
-
|
38
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
39
|
-
config.encoding = "utf-8"
|
40
|
-
|
41
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
42
|
-
config.filter_parameters += [:password]
|
43
|
-
|
44
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
45
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
46
|
-
# like if you have constraints or database-specific column types
|
47
|
-
# config.active_record.schema_format = :sql
|
48
|
-
|
49
|
-
# Enforce whitelist mode for mass assignment.
|
50
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
51
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
52
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
53
|
-
# config.active_record.whitelist_attributes = true
|
54
|
-
|
55
|
-
# Enable the asset pipeline
|
56
|
-
config.assets.enabled = true
|
57
|
-
|
58
|
-
# Version of your assets, change this if you want to expire all your assets
|
59
|
-
config.assets.version = '1.0'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|