Skip to content

Instantly share code, notes, and snippets.

@speratus
Last active December 29, 2019 03:17
Show Gist options
  • Save speratus/7b75009a7611de5661b2fe389b81d57c to your computer and use it in GitHub Desktop.
Save speratus/7b75009a7611de5661b2fe389b81d57c to your computer and use it in GitHub Desktop.
The most basic show page for a district possible
<h1>
<%= @district.name %>
</h1>
<p>
<strong>Type: </strong><%= @district.district_type %>
</p>
<h3>Buildings</h3>
<ul>
<% @district.buildings.each do |building| %>
<li>
<%= link_to building.name, building_path(building) %>
</li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment