simple-address-generator 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails/generators/simple_address_generator/templates/address.rb +2 -2
- data/lib/rails/generators/simple_address_generator/templates/addresses/_form.html.erb +0 -4
- data/lib/rails/generators/simple_address_generator/templates/addresses/index.html.erb +0 -2
- data/lib/rails/generators/simple_address_generator/templates/addresses/show.html.erb +0 -6
- data/lib/simple-address-generator/version.rb +1 -1
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
class Address < ActiveRecord::Base
|
2
|
-
attr_accessible :address_line_1, :address_line_2, :city, :country, :
|
2
|
+
attr_accessible :address_line_1, :address_line_2, :city, :country, :postal_code, :state, :telephone_number, :full_address, :latitude, :longitude, :gmaps, :category_id
|
3
3
|
attr_accessor :gmaps
|
4
4
|
|
5
5
|
geocoded_by :full_address
|
@@ -29,7 +29,7 @@ class Address < ActiveRecord::Base
|
|
29
29
|
|
30
30
|
def gmaps4rails_marker_picture
|
31
31
|
{
|
32
|
-
"picture" => "/assets/icon
|
32
|
+
"picture" => "/assets/icon-1.png",
|
33
33
|
"width" => 30,
|
34
34
|
"height" => 30,
|
35
35
|
"marker_anchor" => [ 5, 10],
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
<table>
|
4
4
|
<tr>
|
5
|
-
<th>Full name</th>
|
6
5
|
<th>Address line 1</th>
|
7
6
|
<th>Address line 2</th>
|
8
7
|
<th>City</th>
|
@@ -17,7 +16,6 @@
|
|
17
16
|
|
18
17
|
<% @addresses.each do |address| %>
|
19
18
|
<tr>
|
20
|
-
<td><%= address.full_name %></td>
|
21
19
|
<td><%= address.address_line_1 %></td>
|
22
20
|
<td><%= address.address_line_2 %></td>
|
23
21
|
<td><%= address.city %></td>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-address-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ dependencies: []
|
|
14
14
|
description: ! 'simple-address-generator allows you to create a complete Address model
|
15
15
|
with fields and two main plugins that geocode address into coordinates and a Google
|
16
16
|
Maps view with custom makers. To use, just add this gem to your Gemfile and then
|
17
|
-
in your Rails 3 application, run: rails g
|
17
|
+
in your Rails 3 application, run: rails g simple_address_generator. Then run rails
|
18
18
|
s and see in your browser http://localhost:3000/addresses.'
|
19
19
|
email: designium+simple@gmail.com
|
20
20
|
executables: []
|