Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Integrated with branches

  • Loading branch information...
commit 0611447cc01ee0547eb3a5342934ed4546a925ab 1 parent 32f5b33
carboes authored
2  app/models/map_location.rb
@@ -6,7 +6,7 @@ class MapLocation < ActiveRecord::Base
6 6
 
7 7
   acts_as_indexed :fields => [:title, :address, :city, :postcode]
8 8
   
9  
-  has_many :weekly_classes
  9
+  has_many :branches
10 10
 
11 11
   default_scope :order => "city, title"
12 12
 
12  app/views/map_locations/_locations.html.erb
@@ -13,14 +13,14 @@
13 13
           </p>
14 14
           <p>
15 15
             <ul>
16  
-            <% loc.weekly_classes.each do |weekly_class| %>
  16
+            <% loc.branches.each do |branch| %>
17 17
               <li>
18  
-                <%= weekly_class.title %>
19  
-                <%= weekly_class.day_of_week %>
20  
-                <%= weekly_class.start %>
21  
-                <%= weekly_class.end %>
  18
+                <!-- <%= branch.title %>
  19
+                <%= branch.day %>
  20
+                <%= branch.start_at %>
  21
+                <%= branch.end_at %> -->
22 22
                 <p>
23  
-                  <%= image_fu weekly_class.photo, "80x80#c" %>
  23
+                  <%= image_fu branch.photo, "80x80#c" %>
24 24
                 </p>
25 25
               </li>
26 26
             <% end %>

0 notes on commit 0611447

Please sign in to comment.
Something went wrong with that request. Please try again.