フロントエンドプレイアブル
This commit is contained in:
19
app/views/turns/index.html.erb
Normal file
19
app/views/turns/index.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<% content_for :title, "Turns" %>
|
||||
|
||||
<h1>Turns</h1>
|
||||
|
||||
<div id="turns">
|
||||
<% @turns.each do |turn| %>
|
||||
<%= turn.id %>
|
||||
<%= turn.game_id %>
|
||||
<%= turn.number %>
|
||||
<%= turn.phase %>
|
||||
<p>
|
||||
<%= link_to "Show this turn", turn %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= link_to "New turn", new_turn_path %>
|
||||
Reference in New Issue
Block a user