Modifying the mash tournament schema a touch and adding a slew of scaffold-y stuff

This commit is contained in:
Dan Buch
2012-03-09 08:11:54 -05:00
parent d4dda1e9d8
commit 1fa4ffbe65
19 changed files with 399 additions and 245 deletions

View 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 %>

View 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 %>

View 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 %>

View File

@@ -0,0 +1,3 @@
<%= link_to 'Edit', edit_mash_tournament_path(@mash_tournament) %> |
<%= link_to 'Back', mash_tournaments_path %>