epom_rails 0.3 → 0.4.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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/epom_rails/acts_as.rb +12 -0
  3. data/lib/epom_rails/version.rb +1 -1
  4. data/test/dummy/app/assets/javascripts/placements.js +2 -0
  5. data/test/dummy/app/assets/javascripts/sites.js +2 -0
  6. data/test/dummy/app/assets/javascripts/zones.js +2 -0
  7. data/test/dummy/app/assets/stylesheets/placements.css +4 -0
  8. data/test/dummy/app/assets/stylesheets/sites.css +4 -0
  9. data/test/dummy/app/assets/stylesheets/zones.css +4 -0
  10. data/test/dummy/app/controllers/placements_controller.rb +58 -0
  11. data/test/dummy/app/controllers/sites_controller.rb +58 -0
  12. data/test/dummy/app/controllers/zones_controller.rb +58 -0
  13. data/test/dummy/app/helpers/placements_helper.rb +2 -0
  14. data/test/dummy/app/helpers/sites_helper.rb +2 -0
  15. data/test/dummy/app/helpers/zones_helper.rb +2 -0
  16. data/test/dummy/app/models/placement.rb +3 -0
  17. data/test/dummy/app/models/site.rb +3 -0
  18. data/test/dummy/app/models/zone.rb +3 -0
  19. data/test/dummy/app/views/placements/_form.html.erb +45 -0
  20. data/test/dummy/app/views/placements/edit.html.erb +6 -0
  21. data/test/dummy/app/views/placements/index.html.erb +39 -0
  22. data/test/dummy/app/views/placements/new.html.erb +5 -0
  23. data/test/dummy/app/views/placements/show.html.erb +39 -0
  24. data/test/dummy/app/views/sites/_form.html.erb +41 -0
  25. data/test/dummy/app/views/sites/edit.html.erb +6 -0
  26. data/test/dummy/app/views/sites/index.html.erb +37 -0
  27. data/test/dummy/app/views/sites/new.html.erb +5 -0
  28. data/test/dummy/app/views/sites/show.html.erb +34 -0
  29. data/test/dummy/app/views/zones/_form.html.erb +33 -0
  30. data/test/dummy/app/views/zones/edit.html.erb +6 -0
  31. data/test/dummy/app/views/zones/index.html.erb +33 -0
  32. data/test/dummy/app/views/zones/new.html.erb +5 -0
  33. data/test/dummy/app/views/zones/show.html.erb +24 -0
  34. data/test/dummy/config/initializers/epom.rb +5 -0
  35. data/test/dummy/config/routes.rb +5 -0
  36. data/test/dummy/db/migrate/20150619174544_create_sites.rb +14 -0
  37. data/test/dummy/db/migrate/20150622160449_create_zones.rb +12 -0
  38. data/test/dummy/db/migrate/20150622181754_create_placements.rb +15 -0
  39. data/test/dummy/db/schema.rb +33 -1
  40. data/test/dummy/test/controllers/placements_controller_test.rb +49 -0
  41. data/test/dummy/test/controllers/sites_controller_test.rb +49 -0
  42. data/test/dummy/test/controllers/zones_controller_test.rb +49 -0
  43. data/test/dummy/test/fixtures/placements.yml +17 -0
  44. data/test/dummy/test/fixtures/sites.yml +15 -0
  45. data/test/dummy/test/fixtures/zones.yml +11 -0
  46. data/test/dummy/test/models/placement_test.rb +7 -0
  47. data/test/dummy/test/models/site_test.rb +7 -0
  48. data/test/dummy/test/models/zone_test.rb +7 -0
  49. data/test/epom_rails/acts_as_placement_test.rb +51 -0
  50. data/test/epom_rails/acts_as_site_test.rb +51 -0
  51. data/test/epom_rails/acts_as_zone_test.rb +41 -0
  52. metadata +95 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d88b3789f18a9ff4b47d9318c70280bed18fd8b
4
- data.tar.gz: 9264c734b76b1fc35c6e1a7e23cf951a845c47eb
3
+ metadata.gz: 8a936fb266fb32eb49850bdc1504c7d7a35d5ac2
4
+ data.tar.gz: e7974fab3e09c53f45adda4acebd09cdf62c7f37
5
5
  SHA512:
6
- metadata.gz: 983f66102b4a91e1c8a835bf1ba8d358dbcb4620dc28e4296e5aefeb71a0e39fd199596dc1cd177655dc74386b80f340f7e791e1e987e44db40dd70cd3e2891d
7
- data.tar.gz: d4b82d0b69e798fb4f0b5ab45ac2d7246f8e385d5d648b1893f5283cee6107484ee8864acf6af9e1995c36b9cec2281d56df073509bba17aaba1b3f896d30afb
6
+ metadata.gz: 3ca55d92af116a4f0b9a1a83bef62d990edd52c4bf621eef586ec2c536a2e574522b0a916d2320caca3dca0f82c54c16a67b3f4fc2fb428986d92904328c6840
7
+ data.tar.gz: f63c8a8c1f28ec7b4a1eb5036e025fe3ca13400b9bad376a72bf94d20179a8fba6547d815df43b1e71bdba8757e1cf3a8db9e2db5f68cd8e0d8757037795df00
@@ -12,6 +12,18 @@ class ActiveRecord::Base
12
12
  acts_as(Epom::Banner, fields)
13
13
  end
14
14
 
15
+ def self.acts_as_site(fields = {})
16
+ acts_as(Epom::Site, fields)
17
+ end
18
+
19
+ def self.acts_as_zone(fields = {})
20
+ acts_as(Epom::Zone, fields)
21
+ end
22
+
23
+ def self.acts_as_placement(fields = {})
24
+ acts_as(Epom::Placement, fields)
25
+ end
26
+
15
27
  private
16
28
 
17
29
  def self.acts_as(klass, fields = {})
@@ -1,3 +1,3 @@
1
1
  module EpomRails
2
- VERSION = "0.3"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,58 @@
1
+ class PlacementsController < ApplicationController
2
+ before_action :set_placement, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /placements
5
+ def index
6
+ @placements = Placement.all
7
+ end
8
+
9
+ # GET /placements/1
10
+ def show
11
+ end
12
+
13
+ # GET /placements/new
14
+ def new
15
+ @placement = Placement.new
16
+ end
17
+
18
+ # GET /placements/1/edit
19
+ def edit
20
+ end
21
+
22
+ # POST /placements
23
+ def create
24
+ @placement = Placement.new(placement_params)
25
+
26
+ if @placement.save
27
+ redirect_to @placement, notice: 'Placement was successfully created.'
28
+ else
29
+ render :new
30
+ end
31
+ end
32
+
33
+ # PATCH/PUT /placements/1
34
+ def update
35
+ if @placement.update(placement_params)
36
+ redirect_to @placement, notice: 'Placement was successfully updated.'
37
+ else
38
+ render :edit
39
+ end
40
+ end
41
+
42
+ # DELETE /placements/1
43
+ def destroy
44
+ @placement.destroy
45
+ redirect_to placements_url, notice: 'Placement was successfully destroyed.'
46
+ end
47
+
48
+ private
49
+ # Use callbacks to share common setup or constraints between actions.
50
+ def set_placement
51
+ @placement = Placement.find(params[:id])
52
+ end
53
+
54
+ # Only allow a trusted parameter "white list" through.
55
+ def placement_params
56
+ params.require(:placement).permit(:epom_id, :zone_id, :placement_type, :name, :ad_unit_id, :size_height, :size_width)
57
+ end
58
+ end
@@ -0,0 +1,58 @@
1
+ class SitesController < ApplicationController
2
+ before_action :set_site, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /sites
5
+ def index
6
+ @sites = Site.all
7
+ end
8
+
9
+ # GET /sites/1
10
+ def show
11
+ end
12
+
13
+ # GET /sites/new
14
+ def new
15
+ @site = Site.new
16
+ end
17
+
18
+ # GET /sites/1/edit
19
+ def edit
20
+ end
21
+
22
+ # POST /sites
23
+ def create
24
+ @site = Site.new(site_params)
25
+
26
+ if @site.save
27
+ redirect_to @site, notice: 'Site was successfully created.'
28
+ else
29
+ render :new
30
+ end
31
+ end
32
+
33
+ # PATCH/PUT /sites/1
34
+ def update
35
+ if @site.update(site_params)
36
+ redirect_to @site, notice: 'Site was successfully updated.'
37
+ else
38
+ render :edit
39
+ end
40
+ end
41
+
42
+ # DELETE /sites/1
43
+ def destroy
44
+ @site.destroy
45
+ redirect_to sites_url, notice: 'Site was successfully destroyed.'
46
+ end
47
+
48
+ private
49
+ # Use callbacks to share common setup or constraints between actions.
50
+ def set_site
51
+ @site = Site.find(params[:id])
52
+ end
53
+
54
+ # Only allow a trusted parameter "white list" through.
55
+ def site_params
56
+ params.require(:site).permit(:epom_id, :name, :url, :description, :email, :category_id)
57
+ end
58
+ end
@@ -0,0 +1,58 @@
1
+ class ZonesController < ApplicationController
2
+ before_action :set_zone, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /zones
5
+ def index
6
+ @zones = Zone.all
7
+ end
8
+
9
+ # GET /zones/1
10
+ def show
11
+ end
12
+
13
+ # GET /zones/new
14
+ def new
15
+ @zone = Zone.new
16
+ end
17
+
18
+ # GET /zones/1/edit
19
+ def edit
20
+ end
21
+
22
+ # POST /zones
23
+ def create
24
+ @zone = Zone.new(zone_params)
25
+
26
+ if @zone.save
27
+ redirect_to @zone, notice: 'Zone was successfully created.'
28
+ else
29
+ render :new
30
+ end
31
+ end
32
+
33
+ # PATCH/PUT /zones/1
34
+ def update
35
+ if @zone.update(zone_params)
36
+ redirect_to @zone, notice: 'Zone was successfully updated.'
37
+ else
38
+ render :edit
39
+ end
40
+ end
41
+
42
+ # DELETE /zones/1
43
+ def destroy
44
+ @zone.destroy
45
+ redirect_to zones_url, notice: 'Zone was successfully destroyed.'
46
+ end
47
+
48
+ private
49
+ # Use callbacks to share common setup or constraints between actions.
50
+ def set_zone
51
+ @zone = Zone.find(params[:id])
52
+ end
53
+
54
+ # Only allow a trusted parameter "white list" through.
55
+ def zone_params
56
+ params.require(:zone).permit(:epom_id, :name, :description, :site_id)
57
+ end
58
+ end
@@ -0,0 +1,2 @@
1
+ module PlacementsHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module SitesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module ZonesHelper
2
+ end
@@ -0,0 +1,3 @@
1
+ class Placement < ActiveRecord::Base
2
+ acts_as_placement epom_id: 'id', zone_id: 'zoneId', placement_type: 'type', name: 'name', ad_unit_id: 'adUnitId', size_height: 'size.height', size_width: 'size.width'
3
+ end
@@ -0,0 +1,3 @@
1
+ class Site < ActiveRecord::Base
2
+ acts_as_site epom_id: 'id', name: 'name', url: 'url', description: 'description', email: 'email', category_id: 'categoryId'
3
+ end
@@ -0,0 +1,3 @@
1
+ class Zone < ActiveRecord::Base
2
+ acts_as_zone epom_id: 'id', name: 'name', description: 'description', site_id: 'siteId'
3
+ end
@@ -0,0 +1,45 @@
1
+ <%= form_for(@placement) do |f| %>
2
+ <% if @placement.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(@placement.errors.count, "error") %> prohibited this placement from being saved:</h2>
5
+
6
+ <ul>
7
+ <% @placement.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= f.label :epom_id %><br>
16
+ <%= f.number_field :epom_id %>
17
+ </div>
18
+ <div class="field">
19
+ <%= f.label :zone_id %><br>
20
+ <%= f.number_field :zone_id %>
21
+ </div>
22
+ <div class="field">
23
+ <%= f.label :placement_type %><br>
24
+ <%= f.text_field :placement_type %>
25
+ </div>
26
+ <div class="field">
27
+ <%= f.label :name %><br>
28
+ <%= f.text_field :name %>
29
+ </div>
30
+ <div class="field">
31
+ <%= f.label :ad_unit_id %><br>
32
+ <%= f.number_field :ad_unit_id %>
33
+ </div>
34
+ <div class="field">
35
+ <%= f.label :size_height %><br>
36
+ <%= f.number_field :size_height %>
37
+ </div>
38
+ <div class="field">
39
+ <%= f.label :size_width %><br>
40
+ <%= f.number_field :size_width %>
41
+ </div>
42
+ <div class="actions">
43
+ <%= f.submit %>
44
+ </div>
45
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Placement</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @placement %> |
6
+ <%= link_to 'Back', placements_path %>
@@ -0,0 +1,39 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Listing Placements</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Epom</th>
9
+ <th>Zone</th>
10
+ <th>Placement type</th>
11
+ <th>Name</th>
12
+ <th>Ad unit</th>
13
+ <th>Size height</th>
14
+ <th>Size width</th>
15
+ <th colspan="3"></th>
16
+ </tr>
17
+ </thead>
18
+
19
+ <tbody>
20
+ <% @placements.each do |placement| %>
21
+ <tr>
22
+ <td><%= placement.epom_id %></td>
23
+ <td><%= placement.zone_id %></td>
24
+ <td><%= placement.placement_type %></td>
25
+ <td><%= placement.name %></td>
26
+ <td><%= placement.ad_unit_id %></td>
27
+ <td><%= placement.size_height %></td>
28
+ <td><%= placement.size_width %></td>
29
+ <td><%= link_to 'Show', placement %></td>
30
+ <td><%= link_to 'Edit', edit_placement_path(placement) %></td>
31
+ <td><%= link_to 'Destroy', placement, method: :delete, data: { confirm: 'Are you sure?' } %></td>
32
+ </tr>
33
+ <% end %>
34
+ </tbody>
35
+ </table>
36
+
37
+ <br>
38
+
39
+ <%= link_to 'New Placement', new_placement_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Placement</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', placements_path %>
@@ -0,0 +1,39 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Epom:</strong>
5
+ <%= @placement.epom_id %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Zone:</strong>
10
+ <%= @placement.zone_id %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Placement type:</strong>
15
+ <%= @placement.placement_type %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Name:</strong>
20
+ <%= @placement.name %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Ad unit:</strong>
25
+ <%= @placement.ad_unit_id %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong>Size height:</strong>
30
+ <%= @placement.size_height %>
31
+ </p>
32
+
33
+ <p>
34
+ <strong>Size width:</strong>
35
+ <%= @placement.size_width %>
36
+ </p>
37
+
38
+ <%= link_to 'Edit', edit_placement_path(@placement) %> |
39
+ <%= link_to 'Back', placements_path %>
@@ -0,0 +1,41 @@
1
+ <%= form_for(@site) do |f| %>
2
+ <% if @site.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(@site.errors.count, "error") %> prohibited this site from being saved:</h2>
5
+
6
+ <ul>
7
+ <% @site.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= f.label :epom_id %><br>
16
+ <%= f.number_field :epom_id %>
17
+ </div>
18
+ <div class="field">
19
+ <%= f.label :name %><br>
20
+ <%= f.text_field :name %>
21
+ </div>
22
+ <div class="field">
23
+ <%= f.label :url %><br>
24
+ <%= f.text_field :url %>
25
+ </div>
26
+ <div class="field">
27
+ <%= f.label :description %><br>
28
+ <%= f.text_area :description %>
29
+ </div>
30
+ <div class="field">
31
+ <%= f.label :email %><br>
32
+ <%= f.text_field :email %>
33
+ </div>
34
+ <div class="field">
35
+ <%= f.label :category_id %><br>
36
+ <%= f.number_field :category_id %>
37
+ </div>
38
+ <div class="actions">
39
+ <%= f.submit %>
40
+ </div>
41
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Site</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @site %> |
6
+ <%= link_to 'Back', sites_path %>
@@ -0,0 +1,37 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Listing Sites</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Epom</th>
9
+ <th>Name</th>
10
+ <th>Url</th>
11
+ <th>Description</th>
12
+ <th>Email</th>
13
+ <th>Category</th>
14
+ <th colspan="3"></th>
15
+ </tr>
16
+ </thead>
17
+
18
+ <tbody>
19
+ <% @sites.each do |site| %>
20
+ <tr>
21
+ <td><%= site.epom_id %></td>
22
+ <td><%= site.name %></td>
23
+ <td><%= site.url %></td>
24
+ <td><%= site.description %></td>
25
+ <td><%= site.email %></td>
26
+ <td><%= site.category_id %></td>
27
+ <td><%= link_to 'Show', site %></td>
28
+ <td><%= link_to 'Edit', edit_site_path(site) %></td>
29
+ <td><%= link_to 'Destroy', site, method: :delete, data: { confirm: 'Are you sure?' } %></td>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+ </table>
34
+
35
+ <br>
36
+
37
+ <%= link_to 'New Site', new_site_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Site</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', sites_path %>
@@ -0,0 +1,34 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Epom:</strong>
5
+ <%= @site.epom_id %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Name:</strong>
10
+ <%= @site.name %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Url:</strong>
15
+ <%= @site.url %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Description:</strong>
20
+ <%= @site.description %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Email:</strong>
25
+ <%= @site.email %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong>Category:</strong>
30
+ <%= @site.category_id %>
31
+ </p>
32
+
33
+ <%= link_to 'Edit', edit_site_path(@site) %> |
34
+ <%= link_to 'Back', sites_path %>
@@ -0,0 +1,33 @@
1
+ <%= form_for(@zone) do |f| %>
2
+ <% if @zone.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(@zone.errors.count, "error") %> prohibited this zone from being saved:</h2>
5
+
6
+ <ul>
7
+ <% @zone.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= f.label :epom_id %><br>
16
+ <%= f.number_field :epom_id %>
17
+ </div>
18
+ <div class="field">
19
+ <%= f.label :name %><br>
20
+ <%= f.text_field :name %>
21
+ </div>
22
+ <div class="field">
23
+ <%= f.label :description %><br>
24
+ <%= f.text_area :description %>
25
+ </div>
26
+ <div class="field">
27
+ <%= f.label :site_id %><br>
28
+ <%= f.number_field :site_id %>
29
+ </div>
30
+ <div class="actions">
31
+ <%= f.submit %>
32
+ </div>
33
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Zone</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @zone %> |
6
+ <%= link_to 'Back', zones_path %>
@@ -0,0 +1,33 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Listing Zones</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Epom</th>
9
+ <th>Name</th>
10
+ <th>Description</th>
11
+ <th>Site</th>
12
+ <th colspan="3"></th>
13
+ </tr>
14
+ </thead>
15
+
16
+ <tbody>
17
+ <% @zones.each do |zone| %>
18
+ <tr>
19
+ <td><%= zone.epom_id %></td>
20
+ <td><%= zone.name %></td>
21
+ <td><%= zone.description %></td>
22
+ <td><%= zone.site_id %></td>
23
+ <td><%= link_to 'Show', zone %></td>
24
+ <td><%= link_to 'Edit', edit_zone_path(zone) %></td>
25
+ <td><%= link_to 'Destroy', zone, method: :delete, data: { confirm: 'Are you sure?' } %></td>
26
+ </tr>
27
+ <% end %>
28
+ </tbody>
29
+ </table>
30
+
31
+ <br>
32
+
33
+ <%= link_to 'New Zone', new_zone_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Zone</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', zones_path %>
@@ -0,0 +1,24 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Epom:</strong>
5
+ <%= @zone.epom_id %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Name:</strong>
10
+ <%= @zone.name %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Description:</strong>
15
+ <%= @zone.description %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Site:</strong>
20
+ <%= @zone.site_id %>
21
+ </p>
22
+
23
+ <%= link_to 'Edit', edit_zone_path(@zone) %> |
24
+ <%= link_to 'Back', zones_path %>
@@ -0,0 +1,5 @@
1
+ Epom.configure do |config|
2
+ config.public_key = 'public_key'
3
+ config.private_key = 'private_key'
4
+ config.epom_server = 'https://n29.epom.com/'
5
+ end
@@ -1,4 +1,9 @@
1
1
  Rails.application.routes.draw do
2
+ resources :placements
3
+ resources :placements
4
+ resources :zones
5
+ resources :sites
6
+ resources :sites
2
7
  resources :banners
3
8
  resources :campaigns
4
9
  resources :campaigns