public
Description: A social transport mashup system example written in Rails
Homepage: https://tillsammans.boss.bekk.no
Clone URL: git://github.com/oc/tillsammans.git
Modified all views to control the content part of the layout.
oc (author)
Thu May 29 13:41:48 -0700 2008
commit  adcad5753fbf4f1887f6f48dc316d4c23c8641ff
tree    8f6895e5a04cf152a15a57f3935932dee63aedd2
parent  6d6a8faf69b58cc8bcf87db39ab4e30a5db1837b
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
0
@@ -1,37 +1,39 @@
0
-<h1>Editing client</h1>
0
-
0
-<%= error_messages_for :client %>
0
-
0
-<% form_for(@client) do |f| %>
0
- <p>
0
- <b>Name</b><br />
0
- <%= f.text_field :name %>
0
- </p>
0
-
0
- <p>
0
- <b>Description</b><br />
0
- <%= f.text_area :description %>
0
- </p>
0
-
0
- <p>
0
- <b>Location</b><br />
0
- <%= f.text_field :location_id %>
0
- </p>
0
-
0
- <p>
0
- <b>Url</b><br />
0
- <%= f.text_field :url %>
0
- </p>
0
-
0
- <p>
0
- <b>Image url</b><br />
0
- <%= f.text_field :image_url %>
0
- </p>
0
-
0
- <p>
0
- <%= f.submit "Update" %>
0
- </p>
0
-<% end %>
0
-
0
-<%= link_to 'Show', @client %> |
0
-<%= link_to 'Back', clients_path %>
0
+<div id="fullContent">
0
+ <h1>Editing client</h1>
0
+
0
+ <%= error_messages_for :client %>
0
+
0
+ <% form_for(@client) do |f| %>
0
+ <p>
0
+ <b>Name</b><br />
0
+ <%= f.text_field :name %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Description</b><br />
0
+ <%= f.text_area :description %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Location</b><br />
0
+ <%= f.text_field :location_id %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Url</b><br />
0
+ <%= f.text_field :url %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Image url</b><br />
0
+ <%= f.text_field :image_url %>
0
+ </p>
0
+
0
+ <p>
0
+ <%= f.submit "Update" %>
0
+ </p>
0
+ <% end %>
0
+
0
+ <%= link_to 'Show', @client %> |
0
+ <%= link_to 'Back', clients_path %>
0
+</div>
0
\ No newline at end of file
...
1
 
 
2
3
4
5
6
7
8
9
10
 
 
 
 
 
 
 
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
 
 
 
 
 
 
 
 
 
 
 
 
25
26
 
27
28
 
 
29
...
 
1
2
3
 
 
 
 
 
 
 
 
4
5
6
7
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
27
28
 
29
30
31
0
@@ -1,28 +1,30 @@
0
-<h1>Listing clients</h1>
0
+<div id="fullContent">
0
+ <h1>Listing clients</h1>
0
 
0
-<table>
0
- <tr>
0
- <th>Name</th>
0
- <th>Description</th>
0
- <th>Location</th>
0
- <th>Url</th>
0
- <th>Image url</th>
0
- </tr>
0
+ <table>
0
+ <tr>
0
+ <th>Name</th>
0
+ <th>Description</th>
0
+ <th>Location</th>
0
+ <th>Url</th>
0
+ <th>Image url</th>
0
+ </tr>
0
 
0
-<% for client in @clients %>
0
- <tr>
0
- <td><%=h client.name %></td>
0
- <td><%=h client.description %></td>
0
- <td><%=h client.location_id %></td>
0
- <td><%=h client.url %></td>
0
- <td><%=h client.image_url %></td>
0
- <td><%= link_to 'Show', client %></td>
0
- <td><%= link_to 'Edit', edit_client_path(client) %></td>
0
- <td><%= link_to 'Destroy', client, :confirm => 'Are you sure?', :method => :delete %></td>
0
- </tr>
0
-<% end %>
0
-</table>
0
+ <% for client in @clients %>
0
+ <tr>
0
+ <td><%=h client.name %></td>
0
+ <td><%=h client.description %></td>
0
+ <td><%=h client.location_id %></td>
0
+ <td><%=h client.url %></td>
0
+ <td><%=h client.image_url %></td>
0
+ <td><%= link_to 'Show', client %></td>
0
+ <td><%= link_to 'Edit', edit_client_path(client) %></td>
0
+ <td><%= link_to 'Destroy', client, :confirm => 'Are you sure?', :method => :delete %></td>
0
+ </tr>
0
+ <% end %>
0
+ </table>
0
 
0
-<br />
0
+ <br />
0
 
0
-<%= link_to 'New client', new_client_path %>
0
+ <%= link_to 'New client', new_client_path %>
0
+</div>
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
0
@@ -1,36 +1,38 @@
0
-<h1>New client</h1>
0
-
0
-<%= error_messages_for :client %>
0
-
0
-<% form_for(@client) do |f| %>
0
- <p>
0
- <b>Name</b><br />
0
- <%= f.text_field :name %>
0
- </p>
0
-
0
- <p>
0
- <b>Description</b><br />
0
- <%= f.text_area :description %>
0
- </p>
0
-
0
- <p>
0
- <b>Location</b><br />
0
- <%= f.text_field :location_id %>
0
- </p>
0
-
0
- <p>
0
- <b>Url</b><br />
0
- <%= f.text_field :url %>
0
- </p>
0
-
0
- <p>
0
- <b>Image url</b><br />
0
- <%= f.text_field :image_url %>
0
- </p>
0
-
0
- <p>
0
- <%= f.submit "Create" %>
0
- </p>
0
-<% end %>
0
-
0
-<%= link_to 'Back', clients_path %>
0
+<div id="fullContent">
0
+ <h1>New client</h1>
0
+
0
+ <%= error_messages_for :client %>
0
+
0
+ <% form_for(@client) do |f| %>
0
+ <p>
0
+ <b>Name</b><br />
0
+ <%= f.text_field :name %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Description</b><br />
0
+ <%= f.text_area :description %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Location</b><br />
0
+ <%= f.text_field :location_id %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Url</b><br />
0
+ <%= f.text_field :url %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Image url</b><br />
0
+ <%= f.text_field :image_url %>
0
+ </p>
0
+
0
+ <p>
0
+ <%= f.submit "Create" %>
0
+ </p>
0
+ <% end %>
0
+
0
+ <%= link_to 'Back', clients_path %>
0
+</div>
0
\ No newline at end of file
...
1
2
3
4
 
 
 
 
 
5
6
7
8
9
 
 
 
 
10
11
12
13
14
 
 
 
 
15
16
17
18
19
 
 
 
 
20
21
22
23
24
 
 
 
 
25
26
27
28
 
 
 
29
...
 
 
 
 
1
2
3
4
5
6
 
 
 
 
7
8
9
10
11
 
 
 
 
12
13
14
15
16
 
 
 
 
17
18
19
20
21
 
 
 
 
22
23
24
25
26
27
 
 
28
29
30
31
0
@@ -1,28 +1,30 @@
0
-<p>
0
- <b>Name:</b>
0
- <%=h @client.name %>
0
-</p>
0
+<div id="fullContent">
0
+ <p>
0
+ <b>Name:</b>
0
+ <%=h @client.name %>
0
+ </p>
0
 
0
-<p>
0
- <b>Description:</b>
0
- <%=h @client.description %>
0
-</p>
0
+ <p>
0
+ <b>Description:</b>
0
+ <%=h @client.description %>
0
+ </p>
0
 
0
-<p>
0
- <b>Location:</b>
0
- <%=h @client.location_id %>
0
-</p>
0
+ <p>
0
+ <b>Location:</b>
0
+ <%=h @client.location_id %>
0
+ </p>
0
 
0
-<p>
0
- <b>Url:</b>
0
- <%=h @client.url %>
0
-</p>
0
+ <p>
0
+ <b>Url:</b>
0
+ <%=h @client.url %>
0
+ </p>
0
 
0
-<p>
0
- <b>Image url:</b>
0
- <%=h @client.image_url %>
0
-</p>
0
+ <p>
0
+ <b>Image url:</b>
0
+ <%=h @client.image_url %>
0
+ </p>
0
 
0
 
0
-<%= link_to 'Edit', edit_client_path(@client) %> |
0
-<%= link_to 'Back', clients_path %>
0
+ <%= link_to 'Edit', edit_client_path(@client) %> |
0
+ <%= link_to 'Back', clients_path %>
0
+</div>
0
\ No newline at end of file
...
1
 
 
2
3
 
4
5
6
7
8
9
 
 
 
 
 
10
11
12
13
14
15
16
17
18
19
 
 
 
 
 
 
 
 
 
20
21
22
23
24
 
 
 
 
25
26
27
28
29
 
 
 
 
30
31
32
33
34
 
 
 
 
35
36
37
 
 
 
38
...
 
1
2
3
 
4
5
 
 
 
 
 
6
7
8
9
10
11
 
 
 
 
 
 
 
 
 
12
13
14
15
16
17
18
19
20
21
 
 
 
 
22
23
24
25
26
 
 
 
 
27
28
29
30
31
 
 
 
 
32
33
34
35
36
 
 
37
38
39
40
0
@@ -1,37 +1,39 @@
0
-<h1>Editing event</h1>
0
+<div id="fullContent">
0
+ <h1>Editing event</h1>
0
 
0
-<%= error_messages_for :event %>
0
+ <%= error_messages_for :event %>
0
 
0
-<% form_for(@event) do |f| %>
0
- <p>
0
- <b>Name</b><br />
0
- <%= f.text_field :name %>
0
- </p>
0
+ <% form_for(@event) do |f| %>
0
+ <p>
0
+ <b>Name</b><br />
0
+ <%= f.text_field :name %>
0
+ </p>
0
 
0
- <p>
0
- <b>Description</b><br />
0
- <%= f.text_area :description %>
0
- </p>
0
-
0
- <!-- p>
0
- <b>Location</b><br />
0
- <%#= text_field_with_auto_complete :event, :location %>
0
- </p -->
0
+ <p>
0
+ <b>Description</b><br />
0
+ <%= f.text_area :description %>
0
+ </p>
0
+
0
+ <!-- p>
0
+ <b>Location</b><br />
0
+ <%#= text_field_with_auto_complete :event, :location %>
0
+ </p -->
0
  
0
- <p>
0
- <b>Starts at</b><br />
0
- <%= f.datetime_select :starts_at %>
0
- </p>
0
+ <p>
0
+ <b>Starts at</b><br />
0
+ <%= f.datetime_select :starts_at %>
0
+ </p>
0
 
0
- <p>
0
- <b>Ends at</b><br />
0
- <%= f.datetime_select :ends_at %>
0
- </p>
0
+ <p>
0
+ <b>Ends at</b><br />
0
+ <%= f.datetime_select :ends_at %>
0
+ </p>
0
 
0
- <p>
0
- <%= f.submit "Update" %>
0
- </p>
0
-<% end %>
0
+ <p>
0
+ <%= f.submit "Update" %>
0
+ </p>
0
+ <% end %>
0
 
0
-<%= link_to 'Show', @event %> |
0
-<%= link_to 'Back', events_path %>
0
+ <%= link_to 'Show', @event %> |
0
+ <%= link_to 'Back', events_path %>
0
+</div>
0
\ No newline at end of file
...
1
 
 
2
3
4
5
6
7
8
9
 
 
 
 
 
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
 
 
 
 
 
 
 
 
 
 
23
24
 
25
26
 
 
27
...
 
1
2
3
 
 
 
 
 
 
 
4
5
6
7
8
9
10
11
 
 
 
 
 
 
 
 
 
 
 
 
12
13
14
15
16
17
18
19
20
21
22
23
24
 
25
26
 
27
28
29
0
@@ -1,26 +1,28 @@
0
-<h1>Listing events</h1>
0
+<div id="fullContent">
0
+ <h1>Listing events</h1>
0
 
0
-<table>
0
- <tr>
0
- <th>Name</th>
0
- <th>Description</th>
0
- <th>Starts at</th>
0
- <th>Ends at</th>
0
- </tr>
0
+ <table>
0
+ <tr>
0
+ <th>Name</th>
0
+ <th>Description</th>
0
+ <th>Starts at</th>
0
+ <th>Ends at</th>
0
+ </tr>
0
 
0
-<% for event in @events %>
0
- <tr>
0
- <td><%=h event.name %></td>
0
- <td><%=h event.description %></td>
0
- <td><%=h event.starts_at %></td>
0
- <td><%=h event.ends_at %></td>
0
- <td><%= link_to 'Show', event %></td>
0
- <td><%= link_to 'Edit', edit_event_path(event) %></td>
0
- <td><%= link_to 'Destroy', event, :confirm => 'Are you sure?', :method => :delete %></td>
0
- </tr>
0
-<% end %>
0
-</table>
0
+ <% for event in @events %>
0
+ <tr>
0
+ <td><%=h event.name %></td>
0
+ <td><%=h event.description %></td>
0
+ <td><%=h event.starts_at %></td>
0
+ <td><%=h event.ends_at %></td>
0
+ <td><%= link_to 'Show', event %></td>
0
+ <td><%= link_to 'Edit', edit_event_path(event) %></td>
0
+ <td><%= link_to 'Destroy', event, :confirm => 'Are you sure?', :method => :delete %></td>
0
+ </tr>
0
+ <% end %>
0
+ </table>
0
 
0
-<br />
0
+ <br />
0
 
0
-<%= link_to 'New event', new_event_path %>
0
+ <%= link_to 'New event', new_event_path %>
0
+</div>
0
\ No newline at end of file
...
1
 
 
2
3
 
4
5
6
7
8
9
 
 
 
 
 
10
11
12
13
14
 
 
 
 
15
16
17
18
19
 
 
 
 
20
21
22
23
24
 
 
 
 
25
26
27
28
29
 
 
 
 
30
31
 
 
32
...
 
1
2
3
 
4
5
 
 
 
 
 
6
7
8
9
10
11
 
 
 
 
12
13
14
15
16
 
 
 
 
17
18
19
20
21
 
 
 
 
22
23
24
25
26
 
 
 
 
27
28
29
30
31
 
32
33
34
0
@@ -1,31 +1,33 @@
0
-<h1>New event</h1>
0
+<div id="fullContent">
0
+ <h1>New event</h1>
0
 
0
-<%= error_messages_for :event %>
0
+ <%= error_messages_for :event %>
0
 
0
-<% form_for(@event) do |f| %>
0
- <p>
0
- <b>Name</b><br />
0
- <%= f.text_field :name %>
0
- </p>
0
+ <% form_for(@event) do |f| %>
0
+ <p>
0
+ <b>Name</b><br />
0
+ <%= f.text_field :name %>
0
+ </p>
0
 
0
- <p>
0
- <b>Description</b><br />
0
- <%= f.text_area :description %>
0
- </p>
0
+ <p>
0
+ <b>Description</b><br />
0
+ <%= f.text_area :description %>
0
+ </p>
0
 
0
- <p>
0
- <b>Starts at</b><br />
0
- <%= f.datetime_select :starts_at %>
0
- </p>
0
+ <p>
0
+ <b>Starts at</b><br />
0
+ <%= f.datetime_select :starts_at %>
0
+ </p>
0
 
0
- <p>
0
- <b>Ends at</b><br />
0
- <%= f.datetime_select :ends_at %>
0
- </p>
0
+ <p>
0
+ <b>Ends at</b><br />
0
+ <%= f.datetime_select :ends_at %>
0
+ </p>
0
 
0
- <p>
0
- <%= f.submit "Create" %>
0
- </p>
0
-<% end %>
0
+ <p>
0
+ <%= f.submit "Create" %>
0
+ </p>
0
+ <% end %>
0
 
0
-<%= link_to 'Back', events_path %>
0
+ <%= link_to 'Back', events_path %>
0
+</div>
0
\ No newline at end of file
...
1
2
3
4
 
 
 
 
 
5
6
7
8
9
 
 
 
 
10
11
12
13
14
 
 
 
 
15
16
17
18
19
 
 
 
 
20
21
22
23
 
 
 
24
...
 
 
 
 
1
2
3
4
5
6
 
 
 
 
7
8
9
10
11
 
 
 
 
12
13
14
15
16
 
 
 
 
17
18
19
20
21
22
 
 
23
24
25
26
0
@@ -1,23 +1,25 @@
0
-<p>
0
- <b>Name:</b>
0
- <%=h @event.name %>
0
-</p>
0
+<div id="fullContent">
0
+ <p>
0
+ <b>Name:</b>
0
+ <%=h @event.name %>
0
+ </p>
0
 
0
-<p>
0
- <b>Description:</b>
0
- <%=h @event.description %>
0
-</p>
0
+ <p>
0
+ <b>Description:</b>
0
+ <%=h @event.description %>
0
+ </p>
0
 
0
-<p>
0
- <b>Starts at:</b>
0
- <%=h @event.starts_at %>
0
-</p>
0
+ <p>
0
+ <b>Starts at:</b>
0
+ <%=h @event.starts_at %>
0
+ </p>
0
 
0
-<p>
0
- <b>Ends at:</b>
0
- <%=h @event.ends_at %>
0
-</p>
0
+ <p>
0
+ <b>Ends at:</b>
0
+ <%=h @event.ends_at %>
0
+ </p>
0
 
0
 
0
-<%= link_to 'Edit', edit_event_path(@event) %> |
0
-<%= link_to 'Back', events_path %>
0
+ <%= link_to 'Edit', edit_event_path(@event) %> |
0
+ <%= link_to 'Back', events_path %>
0
+</div>
0
\ No newline at end of file
...
23
24
25
26
27
28
29
30
31
32
33
34
 
35
36
37
...
23
24
25
 
 
 
 
 
 
 
 
 
26
27
28
29
0
@@ -23,15 +23,7 @@
0
         </div>
0
         <div id="outerWrapper">
0
           <div id="innerWrapper">
0
- <div id="fullContent">
0
- <%= yield %>
0
- </div>
0
- <!-- div id="side">
0
- <%#= render :partial => 'flex/main' %>
0
- </div>
0
- <div id="content">
0
- <%#= yield %>
0
- </div -->
0
+ <%= yield %>
0
           </div>
0
         </div>
0
       </div>
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
0
@@ -1,47 +1,49 @@
0
-<h1>Editing location</h1>
0
-
0
-<%= error_messages_for :location %>
0
-
0
-<% form_for(@location) do |f| %>
0
- <p>
0
- <b>Name</b><br />
0
- <%= f.text_field :name %>
0
- </p>
0
-
0
- <p>
0
- <b>Lat</b><br />
0
- <%= f.text_field :lat %>
0
- </p>
0
-
0
- <p>
0
- <b>Lng</b><br />
0
- <%= f.text_field :lng %>
0
- </p>
0
-
0
- <p>
0
- <b>Street</b><br />
0
- <%= f.text_field :street %>
0
- </p>
0
-
0
- <p>
0
- <b>Zip</b><br />
0
- <%= f.text_field :zip %>
0
- </p>
0
-
0
- <p>
0
- <b>City</b><br />
0
- <%= f.text_field :city %>
0
- </p>
0
-
0
- <p>
0
- <b>Description</b><br />
0
- <%= f.text_area :description %>
0
- </p>
0
-
0
- <p>
0
- <%= f.submit "Update" %>
0
- </p>
0
-<% end %>
0
-
0
-<%= link_to 'Show', @location %> |
0
-<%= link_to 'Back', locations_path %>
0
+<div id="fullContent">
0
+ <h1>Editing location</h1>
0
+
0
+ <%= error_messages_for :location %>
0
+
0
+ <% form_for(@location) do |f| %>
0
+ <p>
0
+ <b>Name</b><br />
0
+ <%= f.text_field :name %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Lat</b><br />
0
+ <%= f.text_field :lat %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Lng</b><br />
0
+ <%= f.text_field :lng %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Street</b><br />
0
+ <%= f.text_field :street %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Zip</b><br />
0
+ <%= f.text_field :zip %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>City</b><br />
0
+ <%= f.text_field :city %>
0
+ </p>
0
+
0
+ <p>
0
+ <b>Description</b><br />
0
+ <%= f.text_area :description %>
0
+ </p>
0
+
0
+ <p>
0
+ <%= f.submit "Update" %>
0
+ </p>
0
+ <% end %>
0
+
0
+ <%= link_to 'Show', @location %> |
0
+ <%= link_to 'Back', locations_path %>
0
+</div>
0
\ No newline at end of file
...
1
 
 
2
3
4
5
6
7
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
30
 
31
32
 
 
33
...
 
1
2
3
 
 
 
 
 
 
 
 
 
 
4
5
6
7
8
9
10
11
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
31
32
 
33
34
35
0
@@ -1,32 +1,34 @@
0
-<h1>Listing locations</h1>
0
+<div id="fullContent">
0
+ <h1>Listing locations</h1>
0
 
0
-<table>
0
- <tr>
0
- <th>Name</th>
0
- <th>Lat</th>
0
- <th>Lng</th>
0
- <th>Street</th>
0
- <th>Zip</th>
0
- <th>City</th>
0
- <th>Description</th>
0
- </tr>
0
+ <table>
0
+ <tr>
0
+ <th>Name</th>
0
+ <th>Lat</th>
0
+ <th>Lng</th>
0
+ <th>Street</th>
0
+ <th>Zip</th>
0
+ <th>City</th>
0
+ <th>Description</th>
0
+ </tr>
0
 
0
-<% for location in @locations %>
0
- <tr>
0
- <td><%=h location.name %></td>
0
- <td><%=h location.lat %></td>
0
- <td><%=h location.lng %></td>
0
- <td><%=h location.street %></td>
0
- <td><%=h location.zip %></td>
0
- <td><%=h location.city %></td>
0
- <td><%=h location.description %></td>
0
- <td><%= link_to 'Show', location %></td>
0
- <td><%= link_to 'Edit', edit_location_path(location) %></td>
0
- <td><%= link_to 'Destroy', location, :confirm => 'Are you sure?', :method => :delete %></td>
0
- </tr>
0
-<% end %>
0
-</table>
0
+ <% for location in @locations %>
0
+ <tr>
0
+ <td><%=h location.name %></td>
0
+ <td><%=h location.lat %></td>
0
+ <td><%=h location.lng %></td>
0
+ <td><%=h location.street %></td>
0
+ <td><%=h location.zip %></td>
0
+ <td><%=h location.city %></td>
0
+ <td><%=h location.description %></td>
0
+ <td><%= link_to 'Show', location %></td>
0
+ <td><%= link_to 'Edit', edit_location_path(location) %></td>
0
+ <td><%= link_to 'Destroy', location, :confirm => 'Are you sure?', :method => :delete %></td>
0
+ </tr>
0
+ <% end %>
0
+ </table>
0
 
0
-<br />
0
+ <br />
0
 
0
-<%= link_to 'New location', new_location_path %>
0
+ <%= link_to 'New location', new_location_path %>
0
+</div>
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40