geocoder stuff - views
This commit is contained in:
parent
c9ffb0e45c
commit
b6ae16bc83
2 changed files with 29 additions and 0 deletions
0
app/views/geocoder/_geocoder.rhtml
Normal file
0
app/views/geocoder/_geocoder.rhtml
Normal file
29
app/views/geocoder/results.rhtml
Normal file
29
app/views/geocoder/results.rhtml
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue