Last change
on this file since 83 was 60, checked in by KOBAYASHI, Shinji, 16 years ago |
add people scaffold
|
File size:
380 bytes
|
Line | |
---|
1 | <h1>New person</h1>
|
---|
2 |
|
---|
3 | <%= error_messages_for :person %>
|
---|
4 |
|
---|
5 | <% form_for(@person) do |f| %>
|
---|
6 | <p>
|
---|
7 | <b>Name</b><br />
|
---|
8 | <%= f.text_field :name %>
|
---|
9 | </p>
|
---|
10 |
|
---|
11 | <p>
|
---|
12 | <b>Birthday</b><br />
|
---|
13 | <%= f.date_select :birthday %>
|
---|
14 | </p>
|
---|
15 |
|
---|
16 | <p>
|
---|
17 | <b>Sex</b><br />
|
---|
18 | <%= f.text_field :sex %>
|
---|
19 | </p>
|
---|
20 |
|
---|
21 | <p>
|
---|
22 | <%= f.submit "Create" %>
|
---|
23 | </p>
|
---|
24 | <% end %>
|
---|
25 |
|
---|
26 | <%= link_to 'Back', people_path %>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.