ensl.org/app/views/categories/edit.html.erb

21 lines
386 B
Text
Raw Normal View History

<h1>Editing category</h1>
<%= form_for @category do |f| %>
<div id="error_explanation">
<ul>
<% @category.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.submit 'Update' %>
</p>
<% end %>
<%= link_to 'Back', categories_path %>