geocoder stuff - views

This commit is contained in:
Nick Black 2007-05-01 13:24:44 +00:00
parent c9ffb0e45c
commit b6ae16bc83
2 changed files with 29 additions and 0 deletions

View file

View file

@ -0,0 +1,29 @@
<h2>Your Search Results for <%= @place_name.capitalize %></h2>
<table>
<tr>
<th>Name</th>
<th>Country</th>
<th><Go to the Map </th>
<th><Get from the API </th>
</tr>
<% @res_ary.each do |hsh| %>
<tr>
<td>
<%= hsh['name'] %>
</td>
<td>
<%= hsh['countryname'] %>
</td>
<td>
<%= link_to('Map', url="/index.html?lat=#{hsh['lat']}&lon=#{hsh['lon']}&zoom=12") %>
</td>
<td>
<%= link_to('API', url="/#FIXME") %>
</td>
</tr>
<% end %>
</table>