Open-Source-Access-Control-.../app/views/space_api/index.html.erb
2014-02-09 00:56:48 -07:00

15 lines
334 B
Plaintext
Executable File

<% content_for :header do %>
<h2>Space Status API
<%= link_to 'JSON', space_api_path( :format => :json ), :class => 'btn' %>
<%= link_to 'Door Access', space_api_access_path, :class => 'btn' %>
</h2>
<% end %>
<dl>
<% @json.each do |key,value| %>
<dt><%= key.humanize.capitalize %>:</dt>
<dd><%= value %></dd>
<% end %>
</dl>