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.
25 lines
586 B
25 lines
586 B
<%= form_for(@host) do |f| %>
|
|
<% if @host.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2><%= pluralize(@host.errors.count, "error") %> prohibited this host from being saved:</h2>
|
|
|
|
<ul>
|
|
<% @host.errors.full_messages.each do |message| %>
|
|
<li><%= message %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="field">
|
|
<%= f.label :name %><br>
|
|
<%= f.text_field :name %>
|
|
</div>
|
|
<div class="field">
|
|
<%= f.label :uri %><br>
|
|
<%= f.text_field :uri %>
|
|
</div>
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|