You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<h1>New mash</h1>
|
|
|
|
|
|
|
|
<% form_for(@mash) do |f| %>
|
|
|
|
<%= f.error_messages %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<div id="map_a">
|
|
|
|
<%= f.label :map_a %><br />
|
|
|
|
<image src="<%= url_for @map_a %>.png" />
|
|
|
|
</div>
|
|
|
|
<div id="map_b">
|
|
|
|
<%= f.label :map_b %><br />
|
|
|
|
<image src="<%= url_for @map_b %>.png" />
|
|
|
|
</div>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :winner %><br />
|
|
|
|
<%= f.text_field :winner %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.submit 'Create' %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to 'Back', mashes_path %>
|