OSDN Git Service

Merge branch 'v04' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v04
[pettanr/pettanr.git] / app / views / authors / _form.html.erb
1 <%= form_for(@au) do |f| %>
2   <% if @au.errors.any? %>
3     <div id="error_explanation">
4       <h2><%= pluralize(@au.errors.count, "error") %> prohibited this author from being saved:</h2>
5
6       <ul>
7       <% @au.errors.full_messages.each do |msg| %>
8         <li><%= msg %></li>
9       <% end %>
10       </ul>
11     </div>
12   <% end %>
13
14   <div class="field">
15     <%= f.label :name %><br />
16     <%= f.text_field :name %><br />
17
18   </div>
19   <div class="actions">
20     <%= f.submit %>
21   </div>
22 <% end %>
23