Modifying the mash tournament schema a touch and adding a slew of scaffold-y stuff
This commit is contained in:
12
rails/map-mash/app/views/mash_tournaments/edit.html.erb
Normal file
12
rails/map-mash/app/views/mash_tournaments/edit.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<h1>Editing mash_tournament</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Update' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', @mash_tournament %> |
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
18
rails/map-mash/app/views/mash_tournaments/index.html.erb
Normal file
18
rails/map-mash/app/views/mash_tournaments/index.html.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
<h1>Listing mash_tournaments</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
</tr>
|
||||
|
||||
<% @mash_tournaments.each do |mash_tournament| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', mash_tournament %></td>
|
||||
<td><%= link_to 'Edit', edit_mash_tournament_path(mash_tournament) %></td>
|
||||
<td><%= link_to 'Destroy', mash_tournament, :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New mash_tournament', new_mash_tournament_path %>
|
11
rails/map-mash/app/views/mash_tournaments/new.html.erb
Normal file
11
rails/map-mash/app/views/mash_tournaments/new.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<h1>New mash_tournament</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
3
rails/map-mash/app/views/mash_tournaments/show.html.erb
Normal file
3
rails/map-mash/app/views/mash_tournaments/show.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<%= link_to 'Edit', edit_mash_tournament_path(@mash_tournament) %> |
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
Reference in New Issue
Block a user