simple-address-generator 0.0.2 → 0.0.3

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.
@@ -1,5 +1,5 @@
1
1
  class Address < ActiveRecord::Base
2
- attr_accessible :address_line_1, :address_line_2, :city, :country, :full_name, :postal_code, :state, :telephone_number, :full_address, :latitude, :longitude, :gmaps, :category_id
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-#{self.category_id}.png",
32
+ "picture" => "/assets/icon-1.png",
33
33
  "width" => 30,
34
34
  "height" => 30,
35
35
  "marker_anchor" => [ 5, 10],
@@ -11,10 +11,6 @@
11
11
  </div>
12
12
  <% end %>
13
13
 
14
- <div class="field">
15
- <%= f.label :full_name %><br />
16
- <%= f.text_field :full_name %>
17
- </div>
18
14
  <div class="field">
19
15
  <%= f.label :address_line_1 %><br />
20
16
  <%= f.text_field :address_line_1 %>
@@ -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>
@@ -1,10 +1,4 @@
1
1
  <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <b>Full name:</b>
5
- <%= @address.full_name %>
6
- </p>
7
-
8
2
  <p>
9
3
  <b>Address line 1:</b>
10
4
  <%= @address.address_line_1 %>
@@ -1,7 +1,7 @@
1
1
  module Simple
2
2
  module Address
3
3
  module Generator
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
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.2
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 simple-address-generator. Then run rails
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: []