Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 520 Bytes
<h1>Earthquakes</h1>
<% if @on_param or @over_param or @near_param %>
<h2>Listing with parameters:</h2>
<ul>
<% if @on_param %>
<li>happened on: <%= @on_param.to_date %></li>
<% end %>
<% if @over_param %>
<li>magnitude over: <%= @over_param %></h2>
<% end %>
<% if @near_param %>
<li>near: <%= @near_param %></h2>
<% end %>
</ul>
<% end %>
<ul>
<% @quakes.each do |q| %>
<li><%= q %></li>
<% end %>
</ul>
Something went wrong with that request. Please try again.