Last active
December 29, 2019 03:17
-
-
Save speratus/7b75009a7611de5661b2fe389b81d57c to your computer and use it in GitHub Desktop.
The most basic show page for a district possible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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